From a4c835ed9153e0fc87813f16c5ec4af69f66cfb5 Mon Sep 17 00:00:00 2001 From: Amadeusz Sadowski Date: Mon, 13 Jul 2026 23:46:36 +0200 Subject: [PATCH] fix: promote must force-add the fixture on repos that gitignore the fixtures dir Found live: amis92/wh40k-11e gitignores tests/, so git add refused the newly promoted fixture and the Open PR step failed. Co-Authored-By: Claude Fable 5 Claude-Session: https://claude.ai/code/session_01KcYK8hmTmXi8eLWpg9LGKJ --- .github/workflows/report-check.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/workflows/report-check.yml b/.github/workflows/report-check.yml index 9c2c92b..22e0be4 100644 --- a/.github/workflows/report-check.yml +++ b/.github/workflows/report-check.yml @@ -178,7 +178,9 @@ jobs: git config user.email "muster@users.noreply.github.com" branch="muster/promote-issue-$ISSUE" git checkout -b "$branch" - git add "${{ inputs.fixtures-out }}" + # -f: some data repos gitignore their fixtures dir (tracked files stay tracked, + # but the freshly promoted fixture is new and would be refused otherwise) + git add -f "${{ inputs.fixtures-out }}" git commit -m "test: promote issue #$ISSUE roster to golden fixture" git push origin "$branch" gh pr create -R "$GITHUB_REPOSITORY" --head "$branch" \