Skip to content

Commit

Permalink
ci: update the update-axe-core workflow (#388)
Browse files Browse the repository at this point in the history
  • Loading branch information
michael-siek authored Nov 2, 2023
1 parent be3f242 commit 226fdce
Showing 1 changed file with 2 additions and 29 deletions.
31 changes: 2 additions & 29 deletions .github/workflows/update-axe-core.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ on:
- cron: "0 0 * * *"
workflow_dispatch:

#TODO: This entire flow will be replaced with https://github.com/dequelabs/axe-api-team-public/issues/30 once it's ready
jobs:
build:
runs-on: ubuntu-latest
Expand All @@ -15,32 +14,6 @@ jobs:
- uses: actions/setup-node@v4
with:
node-version: 16
- id: update
uses: dequelabs/update-axe-core@v1
- id: type
run: |
CommitType=""
if [ "${{ steps.update.outputs.patch_version_updated }}" == "true" ]; then
CommitType="fix"
elif [ "${{ steps.update.outputs.minor_version_updated }}" == "true" ]; then
CommitType="feat"
elif [ "${{ steps.update.outputs.major_version_updated }}" == "true" ]; then
CommitType="feat"
else
echo "No axe-core update available. Cancelling."
gh run cancel ${{ github.run_id }};
gh run watch ${{ github.run_id }};
fi
echo "type=$CommitType" >>"$GITHUB_OUTPUT"
- name: Open PR
uses: peter-evans/create-pull-request@153407881ec5c347639a548ade7d8ad1d6740e38 # tag=v5
- uses: dequelabs/axe-api-team-public/.github/actions/create-update-axe-core-pull-request-v1@main
with:
token: ${{ secrets.PAT }}
commit-message: "${{ steps.type.outputs.type }}: Update axe-core to v${{ steps.update.outputs.version }}"
branch: auto-update-axe-core
base: develop
title: "${{ steps.type.outputs.type }}: Update axe-core to v${{ steps.update.outputs.version }}"
body: |
This patch updates version of [`axe-core`](https://npmjs.org/axe-core) to v${{ steps.update.outputs.version }}.
This PR was opened by a robot :robot: :tada:.
token: ${{ secrets.GITHUB_TOKEN }}

0 comments on commit 226fdce

Please sign in to comment.