mirror of
https://github.com/zhamao-robot/zhamao-framework.git
synced 2026-07-23 16:45:35 +08:00
simplify incrememt build number
This commit is contained in:
25
.github/workflows/increment-build-number.yml
vendored
25
.github/workflows/increment-build-number.yml
vendored
@@ -22,27 +22,12 @@ jobs:
|
|||||||
ref: ${{ github.base_ref }}
|
ref: ${{ github.base_ref }}
|
||||||
|
|
||||||
- name: Setup PHP
|
- name: Setup PHP
|
||||||
uses: "shivammathur/setup-php@v2"
|
uses: sunxyw/workflows/setup-environment@main
|
||||||
with:
|
with:
|
||||||
php-version: '8.1'
|
php-version: 8.0
|
||||||
extensions: swoole, posix, json
|
php-extensions: swoole, posix, json
|
||||||
|
operating-system: ubuntu-latest
|
||||||
- name: Setup problem matchers for PHP
|
use-cache: true
|
||||||
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)"
|
|
||||||
|
|
||||||
- name: Cache dependencies
|
|
||||||
uses: actions/cache@v2
|
|
||||||
with:
|
|
||||||
path: ${{ steps.composer-cache.outputs.dir }}
|
|
||||||
key: ${{ runner.os }}-composer-${{ hashFiles('**/composer.json') }}
|
|
||||||
restore-keys: ${{ runner.os }}-composer-
|
|
||||||
|
|
||||||
- name: Install Composer Dependencies
|
|
||||||
run: "composer install --prefer-dist --no-progress --optimize-autoloader"
|
|
||||||
|
|
||||||
- name: Generate API Docs
|
- name: Generate API Docs
|
||||||
id: generate-api-docs
|
id: generate-api-docs
|
||||||
|
|||||||
Reference in New Issue
Block a user