Skip to content

Commit 2b48dd4

Browse files
committed
Hotfix: fix GitHub action workflows
1 parent 7a3b95b commit 2b48dd4

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

.github/workflows/draft_release.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ jobs:
3838
id: make-commit
3939
run: |
4040
git add CHANGELOG.md
41-
git commit --message "Preparing release v${{ github.event.inputs.tag }}"
41+
git commit --message "Preparing release ${{ github.event.inputs.tag }}"
4242
4343
echo "::set-output name=commit::$(git rev-parse HEAD)"
4444

.github/workflows/publish_release.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ jobs:
5151
run: |
5252
BRANCH_NAME="${{ github.event.pull_request.head.ref }}"
5353
VERSION=${BRANCH_NAME#release/}
54-
git tag v${VERSION} master
54+
git tag ${VERSION} master
5555
5656
- name: Extract version from branch name (for hotfix branches) (Unix)
5757
if: github.event_name == 'pull_request' && startsWith(github.event.pull_request.head.ref, 'hotfix/') && runner.os != 'Windows'
@@ -156,7 +156,7 @@ jobs:
156156
if: github.event_name == 'pull_request' && startsWith(github.event.pull_request.head.ref, 'release/')
157157
run: |
158158
BRANCH_NAME="${{ github.event.pull_request.head.ref }}"
159-
VERSION=${BRANCH_NAME#release/}
159+
VERSION=${BRANCH_NAME#release/v}
160160
161161
echo "RELEASE_VERSION=$VERSION" >> $GITHUB_ENV
162162

0 commit comments

Comments
 (0)