From 4629ea2047282f8138bf39fb79d1f346e21706f0 Mon Sep 17 00:00:00 2001 From: kzrnm Date: Tue, 30 Jan 2024 03:14:18 +0900 Subject: [PATCH] Update workflows --- .github/workflows/build-release-publish.yml | 8 ++++---- .github/workflows/reusable_verify.yml | 18 +++++++++--------- .github/workflows/unittest.yml | 4 ++-- 3 files changed, 15 insertions(+), 15 deletions(-) diff --git a/.github/workflows/build-release-publish.yml b/.github/workflows/build-release-publish.yml index 80c883b..36e848e 100644 --- a/.github/workflows/build-release-publish.yml +++ b/.github/workflows/build-release-publish.yml @@ -17,12 +17,12 @@ env: jobs: get-version: - uses: kzrnm/dotnet-actions/.github/workflows/get-version.yml@v1 + uses: kzrnm/dotnet-actions/.github/workflows/get-version.yml@v2 with: project-path: Directory.Build.props format: - uses: kzrnm/dotnet-actions/.github/workflows/format.yml@v1 + uses: kzrnm/dotnet-actions/.github/workflows/format.yml@v2 with: target: ac-library-csharp.sln dotnet-version: | @@ -30,7 +30,7 @@ jobs: 3.1.x 7.0.x test: - uses: kzrnm/dotnet-actions/.github/workflows/unittest.yml@v1 + uses: kzrnm/dotnet-actions/.github/workflows/unittest.yml@v2 with: target: ac-library-csharp.sln test-logger: GitHubActions @@ -48,7 +48,7 @@ jobs: publish: needs: [get-version, test, format, build-verify] if: ${{ needs.get-version.outputs.is-new == 'true' }} - uses: kzrnm/dotnet-actions/.github/workflows/publish.yml@v1 + uses: kzrnm/dotnet-actions/.github/workflows/publish.yml@v2 with: artifact-name: dist version: ${{ needs.get-version.outputs.version }} diff --git a/.github/workflows/reusable_verify.yml b/.github/workflows/reusable_verify.yml index 9bb7ef7..ca2aa8c 100644 --- a/.github/workflows/reusable_verify.yml +++ b/.github/workflows/reusable_verify.yml @@ -19,14 +19,14 @@ jobs: build-resolve: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v3 - - uses: actions/setup-dotnet@v3 + - uses: actions/checkout@v4 + - uses: actions/setup-dotnet@v4 with: dotnet-version: | 3.0.x 3.1.x 7.0.x - - uses: actions/cache@v3 + - uses: actions/cache@v4 with: path: ~/.nuget/packages key: ${{ runner.os }}-nuget-${{ hashFiles('**/*.csproj', '**/Directory.Build.props') }} @@ -69,13 +69,13 @@ jobs: with: file: verify_files.json - name: Upload binaries - uses: actions/upload-artifact@v3 + uses: actions/upload-artifact@v4 with: name: binary-${{github.sha}} path: Test/ac-library-csharp.LibraryChecker/bin/Release - name: Upload packages - uses: actions/upload-artifact@v3 + uses: actions/upload-artifact@v4 if: inputs.upload-artifact with: name: dist @@ -92,7 +92,7 @@ jobs: index: ["0", "1", "2", "3", "4", "5"] steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - name: Set up competitive-verifier uses: competitive-verifier/actions/setup@v1 @@ -103,20 +103,20 @@ jobs: - name: Download verify_files.json uses: competitive-verifier/actions/download-verify-artifact@v1 - - uses: actions/setup-dotnet@v3 + - uses: actions/setup-dotnet@v4 with: dotnet-version: | 3.0.x 3.1.x 7.0.x - name: Download binaries - uses: actions/download-artifact@v3 + uses: actions/download-artifact@v4 with: name: binary-${{github.sha}} path: Test/ac-library-csharp.LibraryChecker/bin/Release - name: Verify - uses: competitive-verifier/actions/verify@v1 + uses: competitive-verifier/actions/verify@v2 with: destination: ${{runner.temp}}/result.json split-size: ${{ env.SPLIT_SIZE }} diff --git a/.github/workflows/unittest.yml b/.github/workflows/unittest.yml index 393b174..086c51a 100644 --- a/.github/workflows/unittest.yml +++ b/.github/workflows/unittest.yml @@ -14,12 +14,12 @@ env: jobs: format: - uses: kzrnm/dotnet-actions/.github/workflows/format.yml@v1 + uses: kzrnm/dotnet-actions/.github/workflows/format.yml@v2 with: target: ac-library-csharp.sln dotnet-version: 7.0.x test: - uses: kzrnm/dotnet-actions/.github/workflows/unittest.yml@v1 + uses: kzrnm/dotnet-actions/.github/workflows/unittest.yml@v2 with: target: ac-library-csharp.sln test-logger: GitHubActions