Skip to content

Commit ef0623c

Browse files
committed
Switch to master branch just before version bump PR creation
1 parent 7429af3 commit ef0623c

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

.github/workflows/release.yml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -33,13 +33,6 @@ jobs:
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-
git checkout master
42-
4336
- name: Build
4437
run: |
4538
cd build
@@ -100,6 +93,13 @@ jobs:
10093
asset_name: ${{ format('vscode-codeql-{0}.vsix', steps.prepare-artifacts.outputs.ref_name) }}
10194
asset_content_type: application/zip
10295

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+
103103
- name: Bump patch version
104104
id: bump-patch-version
105105
if: success()

0 commit comments

Comments
 (0)