Skip to content

Commit 0210f5a

Browse files
Mike Stankavichclaude
authored andcommitted
fix(ci): git add -f .preview-manifest since it is gitignored (TRA-851)
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
1 parent 23aa39d commit 0210f5a

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

.github/workflows/sync-preview.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,10 @@ jobs:
143143
if: steps.merge-prs.outputs.merged != '' && steps.merge-prs.outputs.merged != '[]'
144144
run: |
145145
echo '${{ steps.merge-prs.outputs.merged }}' | jq -r '.[]' > .preview-manifest
146-
git add .preview-manifest
146+
# -f because .preview-manifest is gitignored to prevent developers
147+
# from accidentally committing it from a feature branch. CI on the
148+
# preview branch is the only legitimate author.
149+
git add -f .preview-manifest
147150
if ! git diff --cached --quiet; then
148151
git commit -m "preview: manifest of merged PRs"
149152
fi

0 commit comments

Comments
 (0)