fix(ci): prevent duplicate PRs in publish-docs workflow - #149
Open
etserend wants to merge 2 commits into
Open
Conversation
Use a static branch name instead of run_id-suffixed branches so re-runs update the existing PR via force-push rather than opening new ones. Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
Use --allow-empty so every run force-pushes to the static branch and the "Create PR" step always runs, keeping the PR's last-updated time current regardless of whether docs content changed. Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
feat/update-docs-${GITHUB_REF_NAME}) instead of arun_id-suffixed one, so re-runs update the same branchgh pr create, and skip creation if one already existsThis applies the same pattern fixed in PR #139 (
regenerate-api-client.yaml) to the publish-docs workflow.Test plan
🤖 Generated with Claude Code