Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion .github/workflows/sync-from-api.yml
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,9 @@ jobs:
git config user.email "41898282+github-actions[bot]@users.noreply.github.com"
git config user.name "github-actions[bot]"

BRANCH="auto/sync-api-types-$(date +%Y%m%d)"
# Unique branch per run avoids collisions when the daily
# sync branch already exists from a prior failed run.
BRANCH="auto/sync-api-types-${{ github.run_id }}"
git checkout -b "$BRANCH"
git add promptguard/generated/
git commit -m "chore: sync generated types from API spec"
Expand Down
Loading