fix build number cannot increment when api docs not modified

This commit is contained in:
sunxyw 2022-04-29 12:35:02 +08:00
parent 0a7c5f06c6
commit 0d9711e62d
No known key found for this signature in database
GPG Key ID: CEA01A083E98C578

View File

@ -17,7 +17,7 @@ jobs:
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Setup PHP
uses: "shivammathur/setup-php@v2"
with:
@ -26,7 +26,7 @@ jobs:
- name: Setup problem matchers for PHP
run: echo "::add-matcher::${{ runner.tool_cache }}/php.json"
- name: Get composer cache directory
id: composer-cache
run: echo "::set-output name=dir::$(composer config cache-files-dir)"
@ -40,11 +40,14 @@ jobs:
- name: Install Composer Dependencies
run: "composer install --prefer-dist --no-progress --optimize-autoloader"
- name: Generate API Docs
id: generate-api-docs
continue-on-error: true
run: bin/gendoc
- name: Commit api docs
if: steps.generate-api-docs.outcome == 'success'
run: |
git config --global user.name 'Github Build Bot'
git config --global user.email 'noreply@github.com'