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