From 687314a05533002ee0b480c2452b5455400cd3a3 Mon Sep 17 00:00:00 2001 From: Matt Liberty Date: Mon, 6 Apr 2026 00:50:06 +0000 Subject: [PATCH] Add GHA to check for differences found in .ok files Same as in OR Signed-off-by: Matt Liberty --- .../github-actions-are-differences-found.yml | 20 +++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 .github/workflows/github-actions-are-differences-found.yml diff --git a/.github/workflows/github-actions-are-differences-found.yml b/.github/workflows/github-actions-are-differences-found.yml new file mode 100644 index 00000000..45436800 --- /dev/null +++ b/.github/workflows/github-actions-are-differences-found.yml @@ -0,0 +1,20 @@ +name: Check that OK files are up to date + +on: + pull_request: + +jobs: + No-Diffs-In-Ok-Files: + runs-on: ${{ vars.USE_SELF_HOSTED == 'true' && 'self-hosted' || 'ubuntu-latest' }} + steps: + - name: Check out repository code + uses: actions/checkout@v6 + with: + fetch-depth: 0 + - name: Check ok files + run: | + set +e + grep --include="*.ok" -Rn "Differences found " + if [[ "$?" == "0" ]]; then + exit 1 + fi