Skip to content

Commit d8936c9

Browse files
Copilotjohnkors
andcommitted
Upgrade GitHub Actions to v5 and latest versions
Co-authored-by: johnkors <206726+johnkors@users.noreply.github.com>
1 parent 82236be commit d8936c9

3 files changed

Lines changed: 17 additions & 19 deletions

File tree

.github/workflows/CI.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,9 @@ jobs:
77
runs-on: ubuntu-latest
88

99
steps:
10-
- uses: actions/checkout@v4
10+
- uses: actions/checkout@v5
1111
- name: Setup .NET
12-
uses: actions/setup-dotnet@v4
12+
uses: actions/setup-dotnet@v5
1313
with:
1414
dotnet-version: 10.0.x
1515
- name: Restore dependencies

.github/workflows/PreRelease.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -8,21 +8,21 @@ jobs:
88
runs-on: ubuntu-latest
99

1010
steps:
11-
- uses: actions/checkout@v4
11+
- uses: actions/checkout@v5
1212
with:
1313
fetch-depth: 0
1414
- name: Setup .NET
15-
uses: actions/setup-dotnet@v4
15+
uses: actions/setup-dotnet@v5
1616
with:
1717
dotnet-version: 10.0.x
1818
- run: echo "ACTIONS_ALLOW_UNSECURE_COMMANDS=true" >> $GITHUB_ENV
1919
- name: Install GitVersion
20-
uses: gittools/actions/gitversion/setup@v0
20+
uses: gittools/actions/gitversion/setup@v4.2.0
2121
with:
22-
versionSpec: "5.x"
22+
versionSpec: "6.x"
2323
- name: Determine Version
2424
id: gitversion
25-
uses: gittools/actions/gitversion/execute@v0
25+
uses: gittools/actions/gitversion/execute@v4.2.0
2626
with:
2727
useConfigFile: true
2828
- name: Pack

.github/workflows/Release.yml

Lines changed: 10 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -8,21 +8,21 @@ jobs:
88
runs-on: ubuntu-latest
99

1010
steps:
11-
- uses: actions/checkout@v4
11+
- uses: actions/checkout@v5
1212
with:
1313
fetch-depth: 0
1414
- name: Setup .NET
15-
uses: actions/setup-dotnet@v4
15+
uses: actions/setup-dotnet@v5
1616
with:
1717
dotnet-version: 10.0.x
1818
- run: echo "ACTIONS_ALLOW_UNSECURE_COMMANDS=true" >> $GITHUB_ENV
1919
- name: Install GitVersion
20-
uses: gittools/actions/gitversion/setup@v0
20+
uses: gittools/actions/gitversion/setup@v4.2.0
2121
with:
22-
versionSpec: "5.x"
22+
versionSpec: "6.x"
2323
- name: Determine Version
2424
id: gitversion
25-
uses: gittools/actions/gitversion/execute@v0
25+
uses: gittools/actions/gitversion/execute@v4.2.0
2626
with:
2727
useConfigFile: true
2828
- name: Pack
@@ -41,12 +41,10 @@ jobs:
4141
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
4242
- name: Create Release
4343
id: create_release
44-
uses: actions/create-release@v1
44+
run: |
45+
gh release create "${{ steps.gitversion.outputs.majorMinorPatch }}" \
46+
--repo="$GITHUB_REPOSITORY" \
47+
--title="Release ${{ steps.gitversion.outputs.majorMinorPatch }}" \
48+
--notes-file=CHANGELOG.md
4549
env:
4650
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
47-
with:
48-
tag_name: ${{ steps.gitversion.outputs.majorMinorPatch }}
49-
release_name: Release ${{ steps.gitversion.outputs.majorMinorPatch }}
50-
body_path: CHANGELOG.md
51-
draft: false
52-
prerelease: false

0 commit comments

Comments
 (0)