Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 7 additions & 4 deletions .github/workflows/wai-trigger-cleanup.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,15 +8,18 @@ on:
types:
- closed

permissions:
contents: read

jobs:
cleanup-branch-wai:
if: ${{ github.event_name == 'delete' && github.event.ref_type == 'branch' }}
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v5
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 #v7.0.1
Comment thread
deniak marked this conversation as resolved.
Resolved

- name: Set up Node.js
uses: actions/setup-node@v4
uses: actions/setup-node@820762786026740c76f36085b0efc47a31fe5020 #v7.0.0
with:
cache: npm

Expand All @@ -36,10 +39,10 @@ jobs:
if: ${{ github.event_name == 'pull_request' || github.event_name == 'pull_request_target' }}
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v5
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 #v7.0.1

- name: Set up Node.js
uses: actions/setup-node@v4
uses: actions/setup-node@820762786026740c76f36085b0efc47a31fe5020 #v7.0.0
with:
cache: npm

Expand Down
7 changes: 5 additions & 2 deletions .github/workflows/wai-trigger-deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,14 +10,17 @@ on:
- "content/**"
- "README.md"

permissions:
contents: read

jobs:
deploy-wai:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v5
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 #v7.0.1

- name: Trigger wai-aria-practices update
uses: actions/github-script@v7
uses: actions/github-script@ed597411d8f924073f98dfc5c65a23a2325f34cd #v8.0.0
with:
github-token: ${{ secrets.W3CGRUNTBOT_TOKEN }}
script: |
Expand Down
13 changes: 7 additions & 6 deletions .github/workflows/wai-trigger-pr.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
name: Trigger PR update for WAI-APG site

on:
pull_request_target:
pull_request:
branches-ignore:
- "dependabot/**"
paths:
Expand All @@ -15,17 +15,18 @@ on:
- "!content/landmarks/examples/**"
- "!common/**"

permissions:
contents: read

jobs:
create-pr-wai:
runs-on: ubuntu-latest
# Only run on pull requests within the same repository, and not from forks.
if: github.event.pull_request.head.repo.full_name == github.repository
Comment thread
deniak marked this conversation as resolved.
Resolved

steps:
- uses: actions/checkout@v5
with:
ref: refs/pull/${{ github.event.pull_request.number }}/head

- name: Trigger wai-aria-practices PR update
uses: actions/github-script@v7
uses: actions/github-script@ed597411d8f924073f98dfc5c65a23a2325f34cd #v8.0.0
env:
APG_BRANCH: ${{ github.head_ref }}
APG_SHA: ${{ github.event.pull_request.head.sha }}
Expand Down
Loading