From ead099e7c79db2f7b3d3cff8ea62305fbeb2b5c2 Mon Sep 17 00:00:00 2001 From: Dom Slee Date: Wed, 10 Jun 2026 18:39:33 +1000 Subject: [PATCH 1/2] chore: update GitHub Actions for node24 deprecation * checkout v4 -> v5, setup-dotnet v4 -> v5, actions-gh-pages v3 -> v4, action-gh-release v1 -> v2 * Replace KageKirin/get-csproj-version (node20, deprecated set-output) with an inline PowerShell step Co-Authored-By: Claude Fable 5 --- .github/workflows/benchmark.yaml | 6 +++--- .github/workflows/ci.yaml | 4 ++-- .github/workflows/release.yaml | 13 +++++++------ 3 files changed, 12 insertions(+), 11 deletions(-) diff --git a/.github/workflows/benchmark.yaml b/.github/workflows/benchmark.yaml index e7c31f7..ec8842d 100644 --- a/.github/workflows/benchmark.yaml +++ b/.github/workflows/benchmark.yaml @@ -13,8 +13,8 @@ jobs: benchmark: runs-on: windows-latest steps: - - uses: actions/checkout@v4 - - uses: actions/setup-dotnet@v4 + - uses: actions/checkout@v5 + - uses: actions/setup-dotnet@v5 with: dotnet-version: '10.0.x' - name: Run benchmark @@ -40,7 +40,7 @@ jobs: $modifiedContent = $fileContent -replace "``````", "```````n" $modifiedContent | Set-Content $fileName - name: Deploy Markdown Result - uses: peaceiris/actions-gh-pages@v3 + uses: peaceiris/actions-gh-pages@v4 with: github_token: ${{ secrets.GITHUB_TOKEN }} publish_dir: ForceOps.Benchmarks/BenchmarkDotNet.Artifacts/results diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index b1db5db..4997c24 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -15,10 +15,10 @@ jobs: runs-on: ${{ matrix.platform }} steps: - - uses: actions/checkout@v4 + - uses: actions/checkout@v5 - name: Install Dotnet - uses: actions/setup-dotnet@v4 + uses: actions/setup-dotnet@v5 with: dotnet-version: "10.0.x" diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index 1f6a3c7..5fe1bea 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -18,20 +18,21 @@ jobs: target: x86_64-pc-windows-msvc steps: - name: Checkout repository - uses: actions/checkout@v4 + uses: actions/checkout@v5 - name: Get version id: get_version - uses: KageKirin/get-csproj-version@v1.0.0 - with: - file: Directory.Build.props + shell: pwsh + run: | + $version = ([xml](Get-Content Directory.Build.props)).Project.PropertyGroup.Version + "version=$version" >> $env:GITHUB_OUTPUT - name: Print Current Version run: | echo Current Version: ${{ steps.get_version.outputs.version }} - name: Install Dotnet - uses: actions/setup-dotnet@v4 + uses: actions/setup-dotnet@v5 with: dotnet-version: "10.0.x" @@ -57,7 +58,7 @@ jobs: - name: Create release if: ${{ github.ref == 'refs/heads/main' && startsWith(github.event.head_commit.message, 'chore(release)') }} - uses: softprops/action-gh-release@v1 + uses: softprops/action-gh-release@v2 with: draft: true name: "${{ steps.get_version.outputs.version }}" From d58904eb585a4dc1dcef2a634c18adedb9b5a70c Mon Sep 17 00:00:00 2001 From: Dom Slee Date: Wed, 10 Jun 2026 18:46:33 +1000 Subject: [PATCH 2/2] chore: use dotnet msbuild -getProperty for version extraction Co-Authored-By: Claude Fable 5 --- .github/workflows/release.yaml | 16 +++++++--------- 1 file changed, 7 insertions(+), 9 deletions(-) diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index 5fe1bea..de134dc 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -20,22 +20,20 @@ jobs: - name: Checkout repository uses: actions/checkout@v5 + - name: Install Dotnet + uses: actions/setup-dotnet@v5 + with: + dotnet-version: "10.0.x" + - name: Get version id: get_version - shell: pwsh - run: | - $version = ([xml](Get-Content Directory.Build.props)).Project.PropertyGroup.Version - "version=$version" >> $env:GITHUB_OUTPUT + shell: bash + run: echo "version=$(dotnet msbuild Directory.Build.props -getProperty:Version)" >> "$GITHUB_OUTPUT" - name: Print Current Version run: | echo Current Version: ${{ steps.get_version.outputs.version }} - - name: Install Dotnet - uses: actions/setup-dotnet@v5 - with: - dotnet-version: "10.0.x" - - name: Directory structure run: | ls