Skip to content

Commit 687314a

Browse files
committed
Add GHA to check for differences found in .ok files
Same as in OR Signed-off-by: Matt Liberty <mliberty@precisioninno.com>
1 parent 5c0158b commit 687314a

1 file changed

Lines changed: 20 additions & 0 deletions

File tree

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
name: Check that OK files are up to date
2+
3+
on:
4+
pull_request:
5+
6+
jobs:
7+
No-Diffs-In-Ok-Files:
8+
runs-on: ${{ vars.USE_SELF_HOSTED == 'true' && 'self-hosted' || 'ubuntu-latest' }}
9+
steps:
10+
- name: Check out repository code
11+
uses: actions/checkout@v6
12+
with:
13+
fetch-depth: 0
14+
- name: Check ok files
15+
run: |
16+
set +e
17+
grep --include="*.ok" -Rn "Differences found "
18+
if [[ "$?" == "0" ]]; then
19+
exit 1
20+
fi

0 commit comments

Comments
 (0)