Skip to content

failed-pa11y-scan

failed-pa11y-scan #83

name: Create GH Issue from CircleCI
on: repository_dispatch
jobs:
create_issue:
name: Create failed pa11y scan issue
runs-on: ubuntu-latest
permissions:
issues: write
steps:
- name: Create GH issue
run: |
DECODED_REPORT=$(echo $BODY | base64 --decode)
gh issue create \
--title "Nightly pa11y scan failed" \
--assignee "$ASSIGNEES" \
--label "$LABELS" \
--body "```$DECODED_REPORT```"
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
GH_REPO: ${{ github.repository }}
ASSIGNEES: caleywoods
LABELS: type:accessibility
BODY: ${{ github.event.client_payload.report }}