Skip to content

Commit 455626c

Browse files
committed
Release action: Fetch master branch in checkout
1 parent b43045a commit 455626c

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

.github/workflows/release.yml

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,12 @@ jobs:
2929
- name: Checkout
3030
uses: actions/checkout@master
3131

32+
# The checkout action does not fetch the master branch.
33+
# Fetch the master branch so that we can base the version bump PR against master.
34+
- name: Fetch master branch
35+
run: |
36+
git fetch --depth=1 origin master:master
37+
3238
- name: Build
3339
run: |
3440
cd build
@@ -100,13 +106,12 @@ jobs:
100106
echo "::set-output name=next_version::$NEXT_VERSION"
101107
102108
- name: Create version bump PR
103-
uses: peter-evans/create-pull-request@7531167f24e3914996c8d5110b5e08478ddadff9 # v1.8.0
109+
uses: peter-evans/create-pull-request@c202684c928d4c9f18394b2ad11df905c5d8b40c # v2.1.2
104110
if: success()
105111
with:
106112
token: ${{ secrets.GITHUB_TOKEN }}
107113
commit-message: Bump version to ${{ steps.bump-patch-version.outputs.next_version }}
108114
title: Bump version to ${{ steps.bump-patch-version.outputs.next_version }}
109115
body: This PR was automatically generated by the GitHub Actions release workflow in this repository.
110116
branch: ${{ format('version/bump-to-{0}', steps.bump-patch-version.outputs.next_version) }}
111-
branch-suffix: none
112117
base: master

0 commit comments

Comments
 (0)