Skip to content
Draft
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
37 changes: 37 additions & 0 deletions .github/workflows/notify-app-on-test-change.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
name: Notify App about test changes
on:
push:
branches:
- master
paths:
- 'tests/**'

jobs:
check-and-notify:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 2

- name: Check for test changes
id: check-changes
run: |
if git diff --name-only HEAD^ HEAD | grep -q "^tests/"; then
echo "changes_detected=true" >> $GITHUB_OUTPUT
else
echo "changes_detected=false" >> $GITHUB_OUTPUT
fi

- name: Trigger aria-at-app workflow
if: steps.check-changes.outputs.changes_detected == 'true'
uses: peter-evans/repository-dispatch@v2
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks like there's a v3 this can be bumped to as well

with:
token: 'TODO: ADD ONCE APPROACH IS ACCEPTED'
repository: w3c/aria-at-app
event-type: update-test-snapshots
client-payload: |
{
"ref": "${{ github.sha }}",
"commit_message": "${{ github.event.head_commit.message }}"
}
Loading