Skip to content

Commit 88af5e6

Browse files
Don't checkout master, instead pass ref to to create-release action
1 parent 5185da7 commit 88af5e6

1 file changed

Lines changed: 2 additions & 3 deletions

File tree

.github/workflows/publish-new-release.yml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,14 +27,12 @@ jobs:
2727
VERSION=${BRANCH_NAME#hotfix/}
2828
2929
echo "::set-env name=RELEASE_VERSION::$VERSION"
30-
- uses: actions/checkout@v2
31-
with:
32-
ref: master
3330
- name: Create Release
3431
uses: actions/create-release@v1
3532
env:
3633
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
3734
with:
35+
ref: master
3836
tag_name: ${{ env.RELEASE_VERSION }}
3937
release_name: ${{ env.RELEASE_VERSION }}
4038
- name: Backport release to dev branch
@@ -45,3 +43,4 @@ jobs:
4543
base: dev
4644
title: Backport release ${{ env.RELEASE_VERSION }} to dev branch
4745
reviewers: ${{ github.event.issue.user.login }}
46+
# if needed, you can checkout the latest master here, build artifacts and publish / deploy them somewhere

0 commit comments

Comments
 (0)