Skip to content

Commit d217790

Browse files
committed
update actions
1 parent b62cde3 commit d217790

File tree

3 files changed

+29
-26
lines changed

3 files changed

+29
-26
lines changed

.github/workflows/codeql-analysis.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -28,17 +28,17 @@ jobs:
2828

2929
steps:
3030
- name: Checkout repository
31-
uses: actions/checkout@v5
31+
uses: actions/checkout@v6
3232
with:
3333
submodules: true
3434

3535
- name: Setup .NET
36-
uses: actions/setup-dotnet@v4
36+
uses: actions/setup-dotnet@v5
3737
with:
3838
dotnet-version: ${{ env.DOTNET_VERSION }}
3939

4040
- name: Initialize CodeQL
41-
uses: github/codeql-action/init@v3
41+
uses: github/codeql-action/init@v4
4242
with:
4343
languages: ${{ matrix.language }}
4444

@@ -49,4 +49,4 @@ jobs:
4949
run: dotnet build MarkdownLd.Kb.slnx --configuration Release --no-restore
5050

5151
- name: Perform CodeQL Analysis
52-
uses: github/codeql-action/analyze@v3
52+
uses: github/codeql-action/analyze@v4

.github/workflows/release.yml

Lines changed: 21 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -23,12 +23,12 @@ jobs:
2323

2424
steps:
2525
- name: Checkout
26-
uses: actions/checkout@v5
26+
uses: actions/checkout@v6
2727
with:
2828
submodules: true
2929

3030
- name: Setup .NET
31-
uses: actions/setup-dotnet@v4
31+
uses: actions/setup-dotnet@v5
3232
with:
3333
dotnet-version: ${{ env.DOTNET_VERSION }}
3434

@@ -76,7 +76,7 @@ jobs:
7676
run: dotnet pack ${{ env.SOLUTION }} --configuration Release -p:IncludeSymbols=false -p:SymbolPackageFormat=snupkg --output ${{ env.ARTIFACTS_DIR }}
7777

7878
- name: Upload artifacts
79-
uses: actions/upload-artifact@v4
79+
uses: actions/upload-artifact@v7
8080
with:
8181
name: nuget-packages
8282
path: ${{ env.ARTIFACTS_DIR }}/*.nupkg
@@ -96,13 +96,13 @@ jobs:
9696

9797
steps:
9898
- name: Download artifacts
99-
uses: actions/download-artifact@v5
99+
uses: actions/download-artifact@v8
100100
with:
101101
name: nuget-packages
102102
path: ${{ env.ARTIFACTS_DIR }}
103103

104104
- name: Setup .NET
105-
uses: actions/setup-dotnet@v4
105+
uses: actions/setup-dotnet@v5
106106
with:
107107
dotnet-version: ${{ env.DOTNET_VERSION }}
108108

@@ -148,13 +148,13 @@ jobs:
148148

149149
steps:
150150
- name: Checkout
151-
uses: actions/checkout@v5
151+
uses: actions/checkout@v6
152152
with:
153153
fetch-depth: 0
154154
token: ${{ secrets.GITHUB_TOKEN }}
155155

156156
- name: Download artifacts
157-
uses: actions/download-artifact@v5
157+
uses: actions/download-artifact@v8
158158
with:
159159
name: nuget-packages
160160
path: ${{ env.ARTIFACTS_DIR }}
@@ -182,7 +182,7 @@ jobs:
182182
set -euo pipefail
183183
VERSION="${{ needs.publish-nuget.outputs.version }}"
184184
TAG="v${VERSION}"
185-
PREVIOUS_TAG="$(git tag --sort=-version:refname | grep -v "^${TAG}$" | head -n1 || true)"
185+
PREVIOUS_TAG="$(git tag --sort=-version:refname | grep -v -x -- "${TAG}" | head -n1 || true)"
186186
187187
{
188188
echo "# Release ${VERSION}"
@@ -207,19 +207,22 @@ jobs:
207207
for package in ${{ env.ARTIFACTS_DIR }}/*.nupkg; do
208208
file="$(basename "${package}")"
209209
base="${file%.nupkg}"
210-
package_id="${base%.${VERSION}}"
210+
version_suffix=".${VERSION}"
211+
package_id="${base%"${version_suffix}"}"
211212
echo "- [${package_id} ${VERSION}](https://www.nuget.org/packages/${package_id}/${VERSION})"
212213
done
213214
} > release_notes.md
214215
215216
- name: Create GitHub Release
216-
uses: softprops/action-gh-release@v2
217-
with:
218-
tag_name: v${{ needs.publish-nuget.outputs.version }}
219-
name: v${{ needs.publish-nuget.outputs.version }}
220-
body_path: release_notes.md
221-
files: ${{ env.ARTIFACTS_DIR }}/*.nupkg
222-
draft: false
223-
prerelease: false
217+
shell: bash
218+
run: |
219+
set -euo pipefail
220+
VERSION="${{ needs.publish-nuget.outputs.version }}"
221+
TAG="v${VERSION}"
222+
223+
gh release create "${TAG}" \
224+
--title "${TAG}" \
225+
--notes-file release_notes.md \
226+
${{ env.ARTIFACTS_DIR }}/*.nupkg
224227
env:
225-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
228+
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}

.github/workflows/validation.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -20,12 +20,12 @@ jobs:
2020

2121
steps:
2222
- name: Checkout
23-
uses: actions/checkout@v5
23+
uses: actions/checkout@v6
2424
with:
2525
submodules: true
2626

2727
- name: Setup .NET
28-
uses: actions/setup-dotnet@v4
28+
uses: actions/setup-dotnet@v5
2929
with:
3030
dotnet-version: ${{ env.DOTNET_VERSION }}
3131

@@ -45,14 +45,14 @@ jobs:
4545
run: dotnet pack MarkdownLd.Kb.slnx --configuration Release -p:IncludeSymbols=false -p:SymbolPackageFormat=snupkg --output ./artifacts
4646

4747
- name: Upload coverage artifact
48-
uses: actions/upload-artifact@v4
48+
uses: actions/upload-artifact@v7
4949
with:
5050
name: coverage
5151
path: TestResults/TUnitCoverage/coverage.cobertura.xml
5252
retention-days: 5
5353

5454
- name: Upload package artifact
55-
uses: actions/upload-artifact@v4
55+
uses: actions/upload-artifact@v7
5656
with:
5757
name: nuget-validation-packages
5858
path: ./artifacts/*.nupkg

0 commit comments

Comments
 (0)