Update split call for local and remote
This commit is contained in:
@@ -7,9 +7,23 @@ on:
|
|||||||
branches: [master, staging, development]
|
branches: [master, staging, development]
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
call-check-and-build:
|
call-check-and-build-local:
|
||||||
# call local if repository name is Composer/CoreLibs-Composer-All.git
|
# call local workflow if repository name is NOT CoreLibs-Composer-All
|
||||||
uses: ${{ github.repository == 'Composer/CoreLibs-Composer-All' && './.github/workflows/php-static-checks-and-tests.yml' || 'OmnicomProduction-Japan/Content.github-actions/.github/workflows/php-static-checks-and-tests.yml@v1' }}
|
if: github.event.repository.name != 'CoreLibs-Composer-All'
|
||||||
|
uses: ./.github/workflows/php-static-checks-and-tests.yml
|
||||||
|
with:
|
||||||
|
php-version: '8.4,8.5'
|
||||||
|
composer-directory: './www'
|
||||||
|
source-directory: './www'
|
||||||
|
disable-phan: ${{ vars.DISABLE_PHAN_CHECK == 'true' || false }}
|
||||||
|
secrets:
|
||||||
|
opj-package-user: ${{ secrets.OPJ_PACKAGE_USER }}
|
||||||
|
opj-package-api-key: ${{ secrets.OPJ_PACKAGE_API_KEY }}
|
||||||
|
|
||||||
|
call-check-and-build-remote:
|
||||||
|
# call remote workflow if repository name is CoreLibs-Composer-All
|
||||||
|
if: github.event.repository.name == 'CoreLibs-Composer-All'
|
||||||
|
uses: OmnicomProduction-Japan/Content.github-actions/.github/workflows/php-static-checks-and-tests.yml@v1
|
||||||
with:
|
with:
|
||||||
php-version: '8.4,8.5'
|
php-version: '8.4,8.5'
|
||||||
composer-directory: './www'
|
composer-directory: './www'
|
||||||
|
|||||||
Reference in New Issue
Block a user