Skip to content

Commit b7aaed6

Browse files
authored
Update release.yml
1 parent 8c84da8 commit b7aaed6

File tree

1 file changed

+5
-8
lines changed

1 file changed

+5
-8
lines changed

.github/workflows/release.yml

Lines changed: 5 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -58,10 +58,7 @@ jobs:
5858
uses: dotnet/[email protected]
5959
with:
6060
setAllVars: true
61-
62-
- name: ⚙️ Calculate release version in X.Y.Z format
63-
run: echo "SIMPLE_VERSION=$((NBGV_VersionMajor)).$((NBGV_VersionMinor)).$((NBGV_BuildNumber+1))" >> $GITHUB_ENV
64-
61+
6562
- name: ⚙️ Setup dotnet 5.0.x
6663
uses: actions/setup-dotnet@v1
6764
with:
@@ -70,7 +67,7 @@ jobs:
7067
- name: 🛠️ Update changelog
7168
uses: thomaseizinger/[email protected]
7269
with:
73-
version: ${{ env.SIMPLE_VERSION }}
70+
version: ${{ env.NBGV_SemVer2 }}
7471

7572
- name: 🛠️ Update changelog compare URLs
7673
shell: bash
@@ -98,9 +95,9 @@ jobs:
9895
env:
9996
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
10097
with:
101-
tag_name: v${{ env.SIMPLE_VERSION }}
98+
tag_name: v${{ env.NBGV_SemVer2 }}
10299
target_commitish: ${{ env.RELEASE_COMMIT_HASH }}
103-
name: Release ${{ env.SIMPLE_VERSION }}
100+
name: Release ${{ env.NBGV_SemVer2 }}
104101
body: ${{ steps.changelog_reader.outputs.changes }}
105102
draft: false
106103
prerelease: ${{ env.NBGV_PublicRelease == 'False' }}
@@ -119,7 +116,7 @@ jobs:
119116
with:
120117
head: stable
121118
base: main
122-
title: Update main with changes in stable after v${{ env.SIMPLE_VERSION }} release
119+
title: Update main with changes in stable after v${{ env.NBGV_SemVer2 }} release
123120
reviewers: ${{ github.actor }} # By default, we request a review from the person who triggered the workflow.
124121
body: |
125122
Hi @${{ github.actor }}

0 commit comments

Comments
 (0)