Skip to content

Commit 96ffc45

Browse files
committed
Updated github actions scripts
1 parent 293b85b commit 96ffc45

File tree

5 files changed

+15
-13
lines changed

5 files changed

+15
-13
lines changed

.github/workflows/feature_release.yml

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ jobs:
2626
id: setup-dotnet
2727
uses: actions/setup-dotnet@v4
2828
with:
29-
dotnet-version: 6.0.x
29+
dotnet-version: 8.0.x
3030
cache: true
3131
cache-dependency-path: "${{ env.PROJECT_NAME }}/packages.lock.json"
3232

@@ -43,10 +43,11 @@ jobs:
4343
tags=$(git tag --list)
4444
count=$(echo $tags | grep -o $version-beta- | wc -l)
4545
count=$((count+1))
46-
echo "Next beta tag is $count"
47-
echo "VERSION=$version-beta-$count" >> $GITHUB_ENV
48-
echo "TAG=v$version-beta-$count" >> $GITHUB_ENV
49-
echo "VERSION_TITLE=v$version Beta $count" >> $GITHUB_ENV
46+
padded_count=$(printf "%02d" $count)
47+
echo "Next beta tag is $padded_count"
48+
echo "VERSION=$version-beta-$padded_count" >> $GITHUB_ENV
49+
echo "TAG=v$version-beta-$padded_count" >> $GITHUB_ENV
50+
echo "VERSION_TITLE=v$version Beta $padded_count" >> $GITHUB_ENV
5051
5152
- name: Rewrite version number
5253
id: rewrite-version

.github/workflows/pages.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ jobs:
3737
- name: Dotnet Setup
3838
uses: actions/setup-dotnet@v4
3939
with:
40-
dotnet-version: 6.x
40+
dotnet-version: 8.0.x
4141
cache: true
4242
cache-dependency-path: "${{ env.PROJECT_NAME }}/packages.lock.json"
4343

.github/workflows/rc_release.yml

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ jobs:
2626
id: setup-dotnet
2727
uses: actions/setup-dotnet@v4
2828
with:
29-
dotnet-version: 6.0.x
29+
dotnet-version: 8.0.x
3030
cache: true
3131
cache-dependency-path: "${{ env.PROJECT_NAME }}/packages.lock.json"
3232

@@ -45,10 +45,11 @@ jobs:
4545
echo "Looking at tags:\n$tags"
4646
count=$(echo $tags | grep -o $version-rc- | wc -l)
4747
count=$((count+1))
48-
echo "Next rc tag is $count"
49-
echo "VERSION=$version-rc-$count" >> $GITHUB_ENV
50-
echo "TAG=v$version-rc-$count" >> $GITHUB_ENV
51-
echo "VERSION_TITLE=v$version RC $count" >> $GITHUB_ENV
48+
padded_count=$(printf "%02d" $count)
49+
echo "Next rc tag is $padded_count"
50+
echo "VERSION=$version-rc-$padded_count" >> $GITHUB_ENV
51+
echo "TAG=v$version-rc-$padded_count" >> $GITHUB_ENV
52+
echo "VERSION_TITLE=v$version RC $padded_count" >> $GITHUB_ENV
5253
5354
- name: Rewrite version number
5455
id: rewrite-version

.github/workflows/release.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ jobs:
2525
id: setup-dotnet
2626
uses: actions/setup-dotnet@v4
2727
with:
28-
dotnet-version: 6.0.x
28+
dotnet-version: 8.0.x
2929
cache: true
3030
cache-dependency-path: "${{ env.PROJECT_NAME }}/packages.lock.json"
3131

.github/workflows/test.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ jobs:
2626
id: setup-dotnet
2727
uses: actions/setup-dotnet@v4
2828
with:
29-
dotnet-version: 6.0.x
29+
dotnet-version: 8.0.x
3030
cache: true
3131
cache-dependency-path: "${{ env.PROJECT_NAME }}/packages.lock.json"
3232

0 commit comments

Comments
 (0)