Skip to content

Commit aa6d819

Browse files
committed
ignore overrider line on comp
1 parent 4dcb654 commit aa6d819

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

workflows/action.yml

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,14 @@ runs:
3131

3232
- name: Confirm that the right workflow is active
3333
shell: bash
34-
run: cmp ${GITHUB_ACTION_PATH}/../.github/workflows/main.yml .github/workflows/main.yml
34+
run: |
35+
set -euo pipefail
36+
REF="${GITHUB_ACTION_PATH}/../.github/workflows/main.yml"
37+
LOC=".github/workflows/main.yml"
38+
# Ignore override inputs so they don't trigger false diffs
39+
diff -u \
40+
<(grep -vE '^[[:space:]]*OVERRIDE_SUBMODULE_(SHA|REF):' "$REF") \
41+
<(grep -vE '^[[:space:]]*OVERRIDE_SUBMODULE_(SHA|REF):' "$LOC")
3542
3643
- name: Enforce official submodule lock
3744
shell: bash

0 commit comments

Comments
 (0)