Skip to content

Commit 05abe0f

Browse files
committed
Only check tracked .ok files
On a self-hosted runner the workspace is reused and the submodules may be present. This check should not check submodules. Signed-off-by: Matt Liberty <mliberty@precisioninno.com>
1 parent d34d035 commit 05abe0f

1 file changed

Lines changed: 1 addition & 3 deletions

File tree

.github/workflows/github-actions-are-differences-found.yml

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,6 @@ jobs:
1313
fetch-depth: 0
1414
- name: Check ok files
1515
run: |
16-
set +e
17-
grep --include="*.ok" -Rn "Differences found "
18-
if [[ "$?" == "0" ]]; then
16+
if git ls-files '*.ok' | xargs grep -n "Differences found "; then
1917
exit 1
2018
fi

0 commit comments

Comments
 (0)