Skip to content

Commit 0f22a30

Browse files
authored
check-files workflow: Count script/ as TR-side changes (#4593)
This fixes a bug in the "isolation of changes to TR space or informative docs" check, which only considered `guidelines` to be TR space, disregarding `scripts` where `wcag.js` is stored.
1 parent 2cf838b commit 0f22a30

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

.github/workflows/check-files.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,8 +37,8 @@ jobs:
3737
fi
3838
- name: Check for isolation of changes to TR space or informative docs
3939
run: |
40-
if test $(git diff origin/${{ github.base_ref }} --numstat | grep -c '\sguidelines/') -gt 0 &&
41-
test $(git diff origin/${{ github.base_ref }} --numstat | grep -vc '\sguidelines/') -gt 0; then
40+
if test $(git diff origin/${{ github.base_ref }} --numstat | egrep -c '\sguidelines/|\sscript/') -gt 0 &&
41+
test $(git diff origin/${{ github.base_ref }} --numstat | egrep -vc '\sguidelines/|\sscript/') -gt 0; then
4242
echo "::notice title=Mixed TR and informative docs changes::Please submit changes to TR space separately from changes to informative docs."
4343
echo "CHECK_FAILED=1" >> "$GITHUB_ENV"
4444
fi

0 commit comments

Comments
 (0)