From 50104f8ca07296f4671afaf8840b8eb36ddf38cd Mon Sep 17 00:00:00 2001 From: "Kenneth G. Franqueiro" Date: Fri, 29 Aug 2025 08:01:41 -0400 Subject: [PATCH] check-files workflow: Count script/ as TR-side changes --- .github/workflows/check-files.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/check-files.yaml b/.github/workflows/check-files.yaml index dc15d190a7..b808f3db51 100644 --- a/.github/workflows/check-files.yaml +++ b/.github/workflows/check-files.yaml @@ -37,8 +37,8 @@ jobs: fi - name: Check for isolation of changes to TR space or informative docs run: | - if test $(git diff origin/${{ github.base_ref }} --numstat | grep -c '\sguidelines/') -gt 0 && - test $(git diff origin/${{ github.base_ref }} --numstat | grep -vc '\sguidelines/') -gt 0; then + if test $(git diff origin/${{ github.base_ref }} --numstat | egrep -c '\sguidelines/|\sscript/') -gt 0 && + test $(git diff origin/${{ github.base_ref }} --numstat | egrep -vc '\sguidelines/|\sscript/') -gt 0; then echo "::notice title=Mixed TR and informative docs changes::Please submit changes to TR space separately from changes to informative docs." echo "CHECK_FAILED=1" >> "$GITHUB_ENV" fi