mirror of
https://github.com/StarCitizenTools/mediawiki-skins-Citizen.git
synced 2024-11-27 15:50:34 +00:00
chore(workflow): 🔧 check if condition earlier
This commit is contained in:
parent
d6e996b09f
commit
6c996b7fff
11
.github/workflows/lint.yml
vendored
11
.github/workflows/lint.yml
vendored
|
@ -103,13 +103,12 @@ jobs:
|
|||
npm run lint:i18n
|
||||
|
||||
- name: Trigger PHP tests
|
||||
if: steps.changed-php.outputs.any_changed == 'true'
|
||||
run: |
|
||||
if [ steps.changed-php.outputs.any_changed == 'true' ]; then
|
||||
curl -X POST -H "Authorization: token ${{ secrets.WORKFLOW_TOKEN }}" \
|
||||
-H "Accept: application/vnd.github.v3+json" \
|
||||
https://api.github.com/repos/StarCitizenTools/mediawiki-skins-Citizen/actions/workflows/php-tests.yaml/dispatches \
|
||||
-d '{"ref":"main"}'
|
||||
fi
|
||||
curl -X POST -H "Authorization: token ${{ secrets.WORKFLOW_TOKEN }}" \
|
||||
-H "Accept: application/vnd.github.v3+json" \
|
||||
https://api.github.com/repos/StarCitizenTools/mediawiki-skins-Citizen/actions/workflows/php-tests.yaml/dispatches \
|
||||
-d '{"ref":"main"}'
|
||||
|
||||
# Only patch code when it is a push event
|
||||
- name: Push the changes
|
||||
|
|
Loading…
Reference in a new issue