Run Axe Dependency Check #8
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Run Axe Dependency Check | |
on: [workflow_dispatch] | |
jobs: | |
axe-dependency-check: | |
name: "Axe Version Check" | |
runs-on: ubuntu-latest | |
timeout-minutes: 10 | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Create dependency update branch | |
run: | | |
git checkout -b axe-dependency-check | |
git config --local user.email "[email protected]" | |
git config --local user.name "GitHub Action" | |
- name: Install Node.js | |
uses: actions/setup-node@v4 | |
with: | |
node-version: 'latest' | |
- name: Install axe-core in temp dir | |
run: | | |
cd utils/resources | |
mkdir temp | |
cd temp | |
npm install axe-core | |
- name: Retrieve axe.js file | |
run: | | |
cd utils/resources/temp/node_modules/axe-core | |
mv axe.js ../../../ | |
- name: Remove temp directory | |
run: | | |
cd utils/resources | |
rm -rf temp | |
- name: Stage & commit file | |
run: | | |
git stage utils/resources/axe.js | |
git diff-index --quiet HEAD || (git commit -a -m "axe.js scheduled update" --allow-empty) | |
- uses: actions/checkout@v4 | |
- run: | | |
git push |