Skip to content

Commit b0389af

Browse files
committed
fix(ci): restore untracked-file detection in record-benchmarks (#1040)
Each of the three pre-consolidation jobs paired `git diff --quiet HEAD` with `git ls-files --others --exclude-standard` so a first-run history file (or one re-created after deletion) would still be picked up. The consolidated check dropped that second guard, which would silently skip the PR step if a benchmark history file was untracked. Restore the guard so verified numbers always make it back to main.
1 parent 1fc92b2 commit b0389af

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

.github/workflows/benchmark.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,9 @@ jobs:
6868
if ! git diff --quiet HEAD -- generated/benchmarks/ README.md 2>/dev/null; then
6969
CHANGED=true
7070
fi
71+
if [ -n "$(git ls-files --others --exclude-standard generated/benchmarks/)" ]; then
72+
CHANGED=true
73+
fi
7174
echo "changed=$CHANGED" >> "$GITHUB_OUTPUT"
7275
7376
- name: Commit and push via PR

0 commit comments

Comments
 (0)