chore: fix various error messages in GitHub Actions

This commit is contained in:
alistair3149 2022-04-27 17:05:35 -04:00
parent ae4dc16121
commit 5eb212ad53

View file

@ -26,22 +26,26 @@ jobs:
# Bypass the phpcbf non-standard exit code
- name: Check PHP
continue-on-error: true
run: |
sh ./bin/phpcbf.sh
composer fix
composer test
- name: Check Javascript
continue-on-error: true
run: |
npm run lint:fix:js
npm run lint:js
- name: Check CSS/LESS
continue-on-error: true
run: |
npm run lint:fix:styles
npm run lint:styles
- name: Check i18n
continue-on-error: true
run: |
npm run lint:i18n
@ -55,11 +59,10 @@ jobs:
git config --global user.name "github-actions"
git config --global user.email "github-actions@users.noreply.github.com"
git remote set-url origin "https://x-access-token:${GITHUB_TOKEN}@github.com/${GITHUB_REPOSITORY}.git"
git checkout -b ${GITHUB_HEAD_REF}
git add .
git commit -am "ci: lint code to MediaWiki standards" -m "Check commit and GitHub actions for more details"
git pull origin ${GITHUB_HEAD_REF} --rebase
git push --set-upstream origin ${GITHUB_HEAD_REF}
git pull --rebase
git push
else
echo "No changes to commit"
fi