Skip to content

馃懛 ci(upgrade): pass base to create-pull-request - #3320

Merged
gaborbernat merged 1 commit into
pypa:mainfrom
gaborbernat:fix/upgrade-pr-base
Sep 26, 2026
Merged

gaborbernat merged 1 commit into
pypa:mainfrom
gaborbernat:fix/upgrade-pr-base

Conversation

@gaborbernat

Copy link
Copy Markdown
Contributor

The daily Upgrade embedded dependencies workflow generates its patch and then fails at Create Pull Request, as in run 36122624310: When the repository is checked out on a commit instead of a branch, the 'base' input must be supplied. 馃悰 The publish job checks out github.sha so it runs the trusted generator revision, which leaves HEAD detached, and peter-evans/create-pull-request cannot infer a base branch from that state.

Passing base: main keeps the checkout pinned to the event commit and gives the action its target branch, as @glaziermag proposed in #3319. Fixes #3319.

The publish job checks out github.sha so it runs the trusted generator
revision, which leaves HEAD detached. create-pull-request cannot infer the
base branch from a detached HEAD and fails before opening the PR, so the
daily upgrade run has stopped producing PRs.

Fixes pypa#3319
@gaborbernat
gaborbernat merged commit 9b9131c into pypa:main Sep 26, 2026
66 checks passed
@gaborbernat
gaborbernat deleted the fix/upgrade-pr-base branch October 3, 2026 15:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

upgrade.yaml: detached github.sha checkout prevents embedded-dependency PR creation

1 participant