Files
OpenROAD/.github/workflows/github-actions-are-differences-found.yml
Matt Liberty 05abe0f093 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>
2026-04-08 17:47:28 +00:00

19 lines
456 B
YAML

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: |
if git ls-files '*.ok' | xargs grep -n "Differences found "; then
exit 1
fi