Infrastructure: Fix inconsistencies in lists of CSS and JS files on 3 example pages (Related to wai-aria-practices issue 255) #658
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: Trigger branch cleanup for WAI-APG site | |
on: | |
delete: | |
pull_request_target: | |
branches-ignore: | |
- "dependabot/**" | |
types: | |
- closed | |
jobs: | |
cleanup-branch-wai: | |
if: ${{ github.event_name == 'delete' && github.event.ref_type == 'branch' }} | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Set up Node.js | |
uses: actions/setup-node@v3 | |
with: | |
cache: npm | |
- name: Install @octokit/rest | |
run: npm install @octokit/rest | |
- name: Run wai-trigger-cleanup script | |
run: | | |
node scripts/wai-trigger-cleanup.js | |
env: | |
GH_TOKEN: ${{ secrets.GH_TOKEN }} | |
OWNER: ${{ github.repository_owner }} | |
# reference github.event.ref for branch deletion | |
APG_BRANCH: ${{ github.event.ref }} | |
cleanup-pr-wai: | |
if: ${{ github.event_name == 'pull_request' || github.event_name == 'pull_request_target' }} | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Set up Node.js | |
uses: actions/setup-node@v3 | |
with: | |
cache: npm | |
- name: Install @octokit/rest | |
run: npm install @octokit/rest | |
- name: Run wai-trigger-cleanup script | |
run: | | |
node scripts/wai-trigger-cleanup.js | |
env: | |
GH_TOKEN: ${{ secrets.GH_TOKEN }} | |
OWNER: ${{ github.repository_owner }} | |
# reference github.head_ref for pull request | |
APG_BRANCH: ${{ github.head_ref }} |