From 21a2ae5eff8bd4fd34bbe007afef5c739ddb4509 Mon Sep 17 00:00:00 2001 From: Wei Ji <23487320+weiji14@users.noreply.github.com> Date: Mon, 10 Feb 2025 14:59:38 +1300 Subject: [PATCH] CI: Use matrix.os instead of runner.os in artifact name (#3797) Fixes error `Failed to CreateArtifact: Received non-retryable error: Failed request: (409) Conflict: an artifact with this name already exists on the workflow run` on the ubuntu-24.04-arm job. Patches #3778 --------- Co-authored-by: Dongdong Tian --- .github/workflows/ci_tests.yaml | 2 +- .github/workflows/ci_tests_dev.yaml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ci_tests.yaml b/.github/workflows/ci_tests.yaml index 57ba8f7e374..c1f5ca24165 100644 --- a/.github/workflows/ci_tests.yaml +++ b/.github/workflows/ci_tests.yaml @@ -177,7 +177,7 @@ jobs: uses: actions/upload-artifact@v4.6.0 if: failure() with: - name: artifact-${{ runner.os }}-${{ matrix.python-version }} + name: artifact-${{ matrix.os }}-${{ matrix.python-version }} path: tmp-test-dir-with-unique-name # Upload coverage to Codecov diff --git a/.github/workflows/ci_tests_dev.yaml b/.github/workflows/ci_tests_dev.yaml index 27ed1200c26..2f10012ea13 100644 --- a/.github/workflows/ci_tests_dev.yaml +++ b/.github/workflows/ci_tests_dev.yaml @@ -185,5 +185,5 @@ jobs: uses: actions/upload-artifact@v4.6.0 if: ${{ failure() }} with: - name: artifact-GMT-${{ matrix.gmt_git_ref }}-${{ runner.os }} + name: artifact-${{ matrix.os }}-GMT-${{ matrix.gmt_git_ref }} path: tmp-test-dir-with-unique-name