Skip to content

Commit 2c4cf1b

Browse files
authored
Merge pull request #254 from jcreedcmu/jcreed/fix-actions
Fix version bump PR creation during release workflow
2 parents 4eeedb6 + ef0623c commit 2c4cf1b

File tree

2 files changed

+11
-10
lines changed

2 files changed

+11
-10
lines changed

.github/workflows/main.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ jobs:
1010
os: [ubuntu-latest, windows-latest]
1111
steps:
1212
- name: Checkout
13-
uses: actions/checkout@v1
13+
uses: actions/checkout@v2
1414
with:
1515
fetch-depth: 1
1616

@@ -46,7 +46,7 @@ jobs:
4646
os: [ubuntu-latest, windows-latest]
4747
steps:
4848
- name: Checkout
49-
uses: actions/checkout@v1
49+
uses: actions/checkout@v2
5050
with:
5151
fetch-depth: 1
5252

.github/workflows/release.yml

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -27,18 +27,12 @@ jobs:
2727
# TODO Share steps with the main workflow.
2828
steps:
2929
- name: Checkout
30-
uses: actions/checkout@master
30+
uses: actions/checkout@v2
3131

3232
- uses: actions/setup-node@v1
3333
with:
3434
node-version: '10.18.1'
3535

36-
# The checkout action does not fetch the master branch.
37-
# Fetch the master branch so that we can base the version bump PR against master.
38-
- name: Fetch master branch
39-
run: |
40-
git fetch --depth=1 origin master:master
41-
4236
- name: Build
4337
run: |
4438
cd build
@@ -99,6 +93,13 @@ jobs:
9993
asset_name: ${{ format('vscode-codeql-{0}.vsix', steps.prepare-artifacts.outputs.ref_name) }}
10094
asset_content_type: application/zip
10195

96+
# The checkout action does not fetch the master branch.
97+
# Fetch the master branch so that we can base the version bump PR against master.
98+
- name: Fetch master branch
99+
run: |
100+
git fetch --depth=1 origin master:master
101+
git checkout master
102+
102103
- name: Bump patch version
103104
id: bump-patch-version
104105
if: success()
@@ -110,7 +111,7 @@ jobs:
110111
echo "::set-output name=next_version::$NEXT_VERSION"
111112
112113
- name: Create version bump PR
113-
uses: peter-evans/create-pull-request@c202684c928d4c9f18394b2ad11df905c5d8b40c # v2.1.2
114+
uses: peter-evans/create-pull-request@c7b64af0a489eae91f7890f2c1b63d13cc2d8ab7 # v2.4.2
114115
if: success()
115116
with:
116117
token: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)