Skip to content

Commit

Permalink
[CI] Drop 4XX status refcache entries, fail GH action when found (#3640)
Browse files Browse the repository at this point in the history
  • Loading branch information
chalin authored Dec 4, 2023
1 parent a48bfa7 commit 6e2650a
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion .github/workflows/check-links.yml
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,14 @@ jobs:
- uses: actions/checkout@v4
- uses: actions/download-artifact@v3
with: { name: build-log-etc }
- run: npm run diff:fail
- name: Fail when refcache contains entries with HTTP status 4XX
run: |
if grep -B 1 -e '"StatusCode": 4' static/refcache.json; then
echo "Run 'npx gulp prune' to remove 4xx entries from the refcache"
exit 1
fi
- name: Does the refcache need updating?
run: npm run diff:fail

check-build-log-for-issues:
name: WARNINGS in build log?
Expand Down

0 comments on commit 6e2650a

Please sign in to comment.