Skip to content

Push renamed changelog to PR branch in upgrade workflow - #3213

Merged
gaborbernat merged 1 commit into
mainfrom
fix-upgrade-changelog-push
Aug 15, 2026
Merged

Push renamed changelog to PR branch in upgrade workflow#3213
gaborbernat merged 1 commit into
mainfrom
fix-upgrade-changelog-push

Conversation

@gaborbernat

Copy link
Copy Markdown
Contributor

The "Rename changelog with PR number" step in upgrade.yaml checks out the local auto/upgrade-embedded-deps branch that create-pull-request left behind (no upstream configured) and then runs a bare git push, which fails with fatal: The current branch auto/upgrade-embedded-deps has no upstream branch (https://github.com/pypa/virtualenv/actions/runs/31094988576, https://github.com/pypa/virtualenv/actions/runs/31307714056); the runs since then are green only because no upgrade was pending. The step now checks out FETCH_HEAD from the fetch it already does, so it works on what is actually on the remote for both the created and updated paths, and pushes explicitly with git push origin HEAD:auto/upgrade-embedded-deps.

@gaborbernat
gaborbernat merged commit a21130f into main Aug 15, 2026
63 checks passed
@gaborbernat
gaborbernat deleted the fix-upgrade-changelog-push branch August 15, 2026 07:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant