@@ -2,21 +2,27 @@ name: Test
22on :
33 pull_request :
44 types :
5+ - opened
6+ - reopened
57 - synchronize
6- push :
7- branches :
8- - main
8+ - ready_for_review
99 workflow_dispatch :
1010
1111permissions :
1212 contents : write
1313 issues : write
1414 pull-requests : write
1515
16+ concurrency :
17+ group : ${{ github.workflow }}-${{ github.ref }}
18+ cancel-in-progress : false # Allow previous workflows’ clean-up steps to complete
19+
1620jobs :
1721 test :
1822 name : Test
1923 runs-on : ubuntu-latest
24+ # Run if triggered manually, or for a non-draft PR
25+ if : ${{ github.event_name != 'pull_request' || github.event.pull_request.draft == false }}
2026 strategy :
2127 matrix :
2228 site : [ "sites/site-with-errors" ]
@@ -50,19 +56,19 @@ jobs:
5056 echo "cache_key=$(printf 'cached_findings-%s-%s.json' "${{ github.ref_name }}" "${{ matrix.site }}" | tr -cs 'A-Za-z0-9._-' '_')" >> $GITHUB_OUTPUT
5157
5258 - name : Scan site (${{ matrix.site }})
53- uses : github/continuous-ai-for-accessibility-scanner@main
59+ uses : github-community-projects /continuous-ai-for-accessibility-scanner@main
5460 with :
5561 urls : |
5662 http://127.0.0.1:4000/
5763 http://127.0.0.1:4000/jekyll/update/2025/07/30/welcome-to-jekyll.html
5864 http://127.0.0.1:4000/about/
5965 http://127.0.0.1:4000/404.html
60- repository : github/continuous-ai-for-accessibility-scanner
66+ repository : github-community-projects /continuous-ai-for-accessibility-scanner
6167 token : ${{ secrets.GH_TOKEN }}
6268 cache_key : ${{ steps.cache_key.outputs.cache_key }}
6369
6470 - name : Retrieve cached findings
65- uses : github/continuous-ai-for-accessibility-scanner/.github/actions/gh-cache/restore@main
71+ uses : github-community-projects /continuous-ai-for-accessibility-scanner/.github/actions/gh-cache/restore@main
6672 with :
6773 path : ${{ steps.cache_key.outputs.cache_key }}
6874 token : ${{ secrets.GITHUB_TOKEN }}
@@ -149,7 +155,7 @@ jobs:
149155
150156 - name : Clean up cached findings
151157 if : ${{ always() }}
152- uses : github/continuous-ai-for-accessibility-scanner/.github/actions/gh-cache/delete@main
158+ uses : github-community-projects /continuous-ai-for-accessibility-scanner/.github/actions/gh-cache/delete@main
153159 with :
154160 path : ${{ steps.cache_key.outputs.cache_key }}
155161 token : ${{ secrets.GITHUB_TOKEN }}
0 commit comments