-
-
Notifications
You must be signed in to change notification settings - Fork 33
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ci: 🎡 set upstream when creating local PR branch
- Loading branch information
Showing
1 changed file
with
4 additions
and
1 deletion.
There are no files selected for viewing
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -220,6 +220,8 @@ jobs: | |
id-token: write | ||
pull-requests: write | ||
contents: write | ||
env: | ||
RELEASE_PR_BRANCH: create-pull-request/patch | ||
steps: | ||
- name: Checkout python-hyperscan | ||
uses: actions/checkout@v4 | ||
|
@@ -254,7 +256,8 @@ jobs: | |
if: steps.release.outputs.released == 'true' | ||
run: | | ||
# use the same default branch name that create-pull-request uses | ||
git checkout -b create-pull-request/patch | ||
git checkout -b ${RELEASE_PR_BRANCH} | ||
git branch --set-upstream-to=${RELEASE_PR_BRANCH} | ||
- name: Semantic release | ||
uses: python-semantic-release/[email protected] | ||
|