Skip to content

Commit

Permalink
Update main.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
steinimo authored Jun 22, 2024
1 parent 9a24cba commit a648b19
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -54,3 +54,13 @@ jobs:
run: npm install -g chromedriver@125
- name: Run Axe with set Chromedriver path
run: axe http://localhost:8080, http://localhost:8080/game, http://localhost:8080/cheat, http://localhost:8080/solver --chromedriver-path $(npm root -g)/chromedriver/bin/chromedriver --exit
- name: Comment on PR
if: ${{ github.event_name == 'pull_request' }}
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
pr_number=$(jq --raw-output .pull_request.number "$GITHUB_EVENT_PATH")
curl -s -H "Authorization: token $GITHUB_TOKEN" \
-X POST \
-d "{\"body\": \"Thank you for your contribution! We are reviewing your pull request.\"}" \
"https://api.github.com/repos/${{ github.repository }}/issues/$pr_number/comments"

0 comments on commit a648b19

Please sign in to comment.