From 6160bf05d40322c99fdd8ed343336f1746ef30e7 Mon Sep 17 00:00:00 2001 From: Stevan Freeborn Date: Wed, 15 Jul 2026 11:31:42 -0500 Subject: [PATCH] chore: update workflows to proper versions --- .github/workflows/publish.yml | 22 +++++++++++----------- .github/workflows/pull_request.yml | 28 ++++++++++++++-------------- 2 files changed, 25 insertions(+), 25 deletions(-) diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 909f5b6..a6a80bf 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -16,14 +16,14 @@ jobs: runs-on: ubuntu-latest steps: - name: Checkout repository - uses: actions/checkout@v4 + uses: actions/checkout@v7 with: fetch-depth: 0 token: ${{ secrets.ACTIONS_PAT }} - - name: Setup .NET 9 - uses: actions/setup-dotnet@v4 + - name: Setup .NET 10 + uses: actions/setup-dotnet@v5 with: - dotnet-version: 9.x + dotnet-version: 10.x - name: Install versionize run: dotnet tool install --global Versionize - name: Setup git @@ -36,7 +36,7 @@ jobs: continue-on-error: true - name: Upload changelog if: steps.versionize.outcome == 'success' - uses: actions/upload-artifact@v4 + uses: actions/upload-artifact@v7 with: name: change-log path: src/BGR.Console/CHANGELOG.md @@ -55,15 +55,15 @@ jobs: runs-on: ubuntu-latest steps: - name: Checkout repository - uses: actions/checkout@v4 + uses: actions/checkout@v7 with: fetch-depth: 0 ref: ${{ github.ref }} token: ${{ secrets.ACTIONS_PAT }} - - name: Setup .NET 9 - uses: actions/setup-dotnet@v4 + - name: Setup .NET 10 + uses: actions/setup-dotnet@v5 with: - dotnet-version: 9.x + dotnet-version: 10.x - name: Build run: dotnet build src - name: Publish for mac-os @@ -84,12 +84,12 @@ jobs: with: proj-path: src/BGR.Console/BGR.Console.csproj - name: Download changlog - uses: actions/download-artifact@v4 + uses: actions/download-artifact@v8 with: name: change-log path: src/BGR.Console - name: Create release - uses: softprops/action-gh-release@v1 + uses: softprops/action-gh-release@v3 with: token: ${{ secrets.ACTIONS_PAT }} name: bgr v${{ steps.get-version.outputs.version }} diff --git a/.github/workflows/pull_request.yml b/.github/workflows/pull_request.yml index 6b7e30d..6d9dd6e 100644 --- a/.github/workflows/pull_request.yml +++ b/.github/workflows/pull_request.yml @@ -18,14 +18,14 @@ jobs: contents: write steps: - name: Checkout repository - uses: actions/checkout@v4 + uses: actions/checkout@v7 with: fetch-depth: 0 token: ${{ secrets.ACTIONS_PAT }} - - name: Setup .NET - uses: actions/setup-dotnet@v4 + - name: Setup .NET 10 + uses: actions/setup-dotnet@v5 with: - dotnet-version: 9.x.x + dotnet-version: 10.x.x - name: Format project run: dotnet format src --verbosity normal - name: Commit Changes @@ -49,14 +49,14 @@ jobs: runs-on: ${{ matrix.os }} steps: - name: Checkout repository - uses: actions/checkout@v4 + uses: actions/checkout@v7 with: fetch-depth: 0 token: ${{ secrets.ACTIONS_PAT }} - - name: Setup .NET 9 - uses: actions/setup-dotnet@v4 + - name: Setup .NET 10 + uses: actions/setup-dotnet@v5 with: - dotnet-version: 9.x + dotnet-version: 10.x - name: Install report generator run: dotnet tool install --global dotnet-reportgenerator-globaltool - name: Restore dependencies @@ -68,7 +68,7 @@ jobs: - name: Rename test coverage report run: mv src/BGR.Console.Tests/TestResults/Coverage/coverage.cobertura.xml src/BGR.Console.Tests/TestResults/Coverage/${{ matrix.os }}-coverage.cobertura.xml - name: Upload test coverage report for ${{ matrix.os }} - uses: actions/upload-artifact@v4 + uses: actions/upload-artifact@v7 with: name: test-coverage-${{ matrix.os }} path: src/BGR.Console.Tests/TestResults/Coverage/${{ matrix.os }}-coverage.cobertura.xml @@ -78,26 +78,26 @@ jobs: runs-on: ubuntu-latest steps: - name: Checkout repository - uses: actions/checkout@v4 + uses: actions/checkout@v7 with: fetch-depth: 0 token: ${{ secrets.ACTIONS_PAT }} - name: Download ubuntu-latest report - uses: actions/download-artifact@v4 + uses: actions/download-artifact@v8 with: name: test-coverage-ubuntu-latest path: ./coverage - name: Download windows-latest report - uses: actions/download-artifact@v4 + uses: actions/download-artifact@v8 with: name: test-coverage-windows-latest path: ./coverage - name: Download macos-latest report - uses: actions/download-artifact@v4 + uses: actions/download-artifact@v8 with: name: test-coverage-macos-latest path: ./coverage - name: Upload test coverage reports - uses: codecov/codecov-action@v4 + uses: codecov/codecov-action@v7 with: token: ${{ secrets.CODECOV_TOKEN }}