Update split call for local and remote

This commit is contained in:
2026-06-25 15:04:03 +09:00
parent 5cba8ca9ac
commit b262b4be0f
@@ -7,9 +7,23 @@ on:
branches: [master, staging, development]
jobs:
call-check-and-build:
# call local if repository name is Composer/CoreLibs-Composer-All.git
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' }}
call-check-and-build-local:
# call local workflow if repository name is NOT CoreLibs-Composer-All
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:
php-version: '8.4,8.5'
composer-directory: './www'