Skip to content

Commit d63170a

Browse files
author
ebembi-crdb
committed
Fix git diff path in CI workflow
Working directory is src/current, so the path to snapshot_relative.py should be relative to that, not the repo root. Also add -- to disambiguate the path from a git revision.
1 parent f9bc2e9 commit d63170a

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

.github/workflows/test-archive-scripts.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,4 +38,6 @@ jobs:
3838

3939
- name: Verify snapshot_relative.py is unchanged
4040
# Confirms the scripts never modify the checked-in source file.
41-
run: git diff --exit-code src/current/snapshot_relative.py
41+
# Use -- to disambiguate path from a revision; path is relative to
42+
# working-directory (src/current).
43+
run: git diff --exit-code -- snapshot_relative.py

0 commit comments

Comments
 (0)