mirror of
https://github.com/zhamao-robot/zhamao-framework.git
synced 2026-03-17 20:54:52 +08:00
fix build number cannot increment when api docs not modified
This commit is contained in:
parent
0a7c5f06c6
commit
0d9711e62d
11
.github/workflows/increment-build-number.yml
vendored
11
.github/workflows/increment-build-number.yml
vendored
@ -17,7 +17,7 @@ jobs:
|
|||||||
steps:
|
steps:
|
||||||
- name: Checkout code
|
- name: Checkout code
|
||||||
uses: actions/checkout@v2
|
uses: actions/checkout@v2
|
||||||
|
|
||||||
- name: Setup PHP
|
- name: Setup PHP
|
||||||
uses: "shivammathur/setup-php@v2"
|
uses: "shivammathur/setup-php@v2"
|
||||||
with:
|
with:
|
||||||
@ -26,7 +26,7 @@ jobs:
|
|||||||
|
|
||||||
- name: Setup problem matchers for PHP
|
- name: Setup problem matchers for PHP
|
||||||
run: echo "::add-matcher::${{ runner.tool_cache }}/php.json"
|
run: echo "::add-matcher::${{ runner.tool_cache }}/php.json"
|
||||||
|
|
||||||
- name: Get composer cache directory
|
- name: Get composer cache directory
|
||||||
id: composer-cache
|
id: composer-cache
|
||||||
run: echo "::set-output name=dir::$(composer config cache-files-dir)"
|
run: echo "::set-output name=dir::$(composer config cache-files-dir)"
|
||||||
@ -40,11 +40,14 @@ jobs:
|
|||||||
|
|
||||||
- name: Install Composer Dependencies
|
- name: Install Composer Dependencies
|
||||||
run: "composer install --prefer-dist --no-progress --optimize-autoloader"
|
run: "composer install --prefer-dist --no-progress --optimize-autoloader"
|
||||||
|
|
||||||
- name: Generate API Docs
|
- name: Generate API Docs
|
||||||
|
id: generate-api-docs
|
||||||
|
continue-on-error: true
|
||||||
run: bin/gendoc
|
run: bin/gendoc
|
||||||
|
|
||||||
- name: Commit api docs
|
- name: Commit api docs
|
||||||
|
if: steps.generate-api-docs.outcome == 'success'
|
||||||
run: |
|
run: |
|
||||||
git config --global user.name 'Github Build Bot'
|
git config --global user.name 'Github Build Bot'
|
||||||
git config --global user.email 'noreply@github.com'
|
git config --global user.email 'noreply@github.com'
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user