Skip to content

Commit a10b6f4

Browse files
committed
chore: add .NET 10 to release workflows
1 parent 3364827 commit a10b6f4

File tree

2 files changed

+25
-8
lines changed

2 files changed

+25
-8
lines changed

.github/workflows/create-release-pr.yml

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -40,13 +40,18 @@ jobs:
4040
- name: Checkout
4141
uses: actions/checkout@85e6279cec87321a52edac9c87bce653a07cf6c2 #v4.2.2
4242
with:
43-
fetch-depth: '0'
43+
fetch-depth: "0"
4444
token: ${{ env.AWS_SECRET_TOKEN }}
4545
# Install .NET9 which is needed for AutoVer
4646
- name: Setup .NET 9.0
4747
uses: actions/setup-dotnet@67a3573c9a986a3f9c594539f4ab511d57bb3ce9 #v4.3.1
4848
with:
4949
dotnet-version: 9.0.x
50+
# Install .NET10 which is needed for building the solution
51+
- name: Setup .NET 10.0
52+
uses: actions/setup-dotnet@67a3573c9a986a3f9c594539f4ab511d57bb3ce9 #v4.3.1
53+
with:
54+
dotnet-version: 10.0.x
5055
# Install AutoVer to automate versioning and changelog creation
5156
- name: Install AutoVer
5257
run: dotnet tool install --global AutoVer --version 0.0.25
@@ -75,7 +80,7 @@ jobs:
7580
run: |
7681
dotnet build Libraries/Libraries.sln -c Release
7782
git add "*.template"
78-
83+
7984
if git diff --cached --quiet; then
8085
echo "No .template files were staged; skipping commit."
8186
else
@@ -109,4 +114,5 @@ jobs:
109114
run: |
110115
pr_url="$(gh pr create --title "${{ steps.read-release-name.outputs.VERSION }}" --body "${{ steps.read-changelog.outputs.CHANGELOG }}" --base dev --head ${{ steps.create-release-branch.outputs.BRANCH }})"
111116
gh label create "Release PR" --description "A Release PR that includes versioning and changelog changes" -c "#FF0000" -f
112-
gh pr edit $pr_url --add-label "Release PR"
117+
gh pr edit $pr_url --add-label "Release PR"
118+

.github/workflows/sync-master-dev.yml

Lines changed: 16 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -8,13 +8,13 @@ on:
88
pull_request:
99
types: [closed]
1010

11-
permissions:
11+
permissions:
1212
contents: write
1313
id-token: write
1414

1515
jobs:
16-
# This job will check if the PR was successfully merged, it's source branch is `releases/next-release` and target branch is `dev`.
17-
# This indicates that the merged PR was the `Release PR`.
16+
# This job will check if the PR was successfully merged, it's source branch is `releases/next-release` and target branch is `dev`.
17+
# This indicates that the merged PR was the `Release PR`.
1818
# This job will synchronize `dev` and `master`, create a GitHub Release and delete the `releases/next-release` branch.
1919
sync-dev-and-master:
2020
name: Sync dev and master
@@ -49,6 +49,11 @@ jobs:
4949
uses: actions/setup-dotnet@67a3573c9a986a3f9c594539f4ab511d57bb3ce9 #v4.3.1
5050
with:
5151
dotnet-version: 9.0.x
52+
# Install .NET10 which is needed for building the solution
53+
- name: Setup .NET 10.0
54+
uses: actions/setup-dotnet@67a3573c9a986a3f9c594539f4ab511d57bb3ce9 #v4.3.1
55+
with:
56+
dotnet-version: 10.0.x
5257
# Install AutoVer which is needed to retrieve information about the current release.
5358
- name: Install AutoVer
5459
run: dotnet tool install --global AutoVer --version 0.0.25
@@ -98,7 +103,7 @@ jobs:
98103
else
99104
echo "Branch 'releases/next-release' does not exist on origin, skipping deletion."
100105
fi
101-
# This job will check if the PR was closed, it's source branch is `releases/next-release` and target branch is `dev`.
106+
# This job will check if the PR was closed, it's source branch is `releases/next-release` and target branch is `dev`.
102107
# This indicates that the closed PR was the `Release PR`.
103108
# This job will delete the tag created by AutoVer and the release branch.
104109
clean-up-closed-release:
@@ -120,6 +125,11 @@ jobs:
120125
uses: actions/setup-dotnet@67a3573c9a986a3f9c594539f4ab511d57bb3ce9 #v4.3.1
121126
with:
122127
dotnet-version: 9.0.x
128+
# Install .NET10 which is needed for building the solution
129+
- name: Setup .NET 10.0
130+
uses: actions/setup-dotnet@67a3573c9a986a3f9c594539f4ab511d57bb3ce9 #v4.3.1
131+
with:
132+
dotnet-version: 10.0.x
123133
# Install AutoVer which is needed to retrieve information about the current release.
124134
- name: Install AutoVer
125135
run: dotnet tool install --global AutoVer --version 0.0.25
@@ -144,4 +154,5 @@ jobs:
144154
git push origin --delete releases/next-release
145155
else
146156
echo "Branch 'releases/next-release' does not exist on origin, skipping deletion."
147-
fi
157+
fi
158+

0 commit comments

Comments
 (0)