diff --git a/.github/workflows/bash.yml b/.github/workflows/bash.yml index 4d740df23ac..eb34e3ad76d 100644 --- a/.github/workflows/bash.yml +++ b/.github/workflows/bash.yml @@ -85,7 +85,7 @@ jobs: - name: Upload artifact if: failure() - uses: actions/upload-artifact@v3 + uses: actions/upload-artifact@v4 with: - name: Upload cylc-run artifact + name: 'cylc-run (bash-${{ matrix.bash-version }})' path: cylc-run diff --git a/.github/workflows/test_fast.yml b/.github/workflows/test_fast.yml index 6530bb85cd6..74be3220472 100644 --- a/.github/workflows/test_fast.yml +++ b/.github/workflows/test_fast.yml @@ -70,7 +70,7 @@ jobs: - name: Upload failed tests artifact if: failure() - uses: actions/upload-artifact@v3 + uses: actions/upload-artifact@v4 with: name: cylc-run (${{ matrix.os }} py-${{ matrix.python-version }}) path: ~/cylc-run/ @@ -81,7 +81,7 @@ jobs: coverage report - name: Upload coverage artifact - uses: actions/upload-artifact@v3 + uses: actions/upload-artifact@v4 with: name: coverage_${{ matrix.os }}_py-${{ matrix.python-version }} path: coverage.xml @@ -138,7 +138,7 @@ jobs: uses: actions/checkout@v4 - name: Download coverage artifacts - uses: actions/download-artifact@v3 + uses: actions/download-artifact@v4 - name: Codecov upload uses: codecov/codecov-action@v3 diff --git a/.github/workflows/test_functional.yml b/.github/workflows/test_functional.yml index 6fad4147345..737f0c3900f 100644 --- a/.github/workflows/test_functional.yml +++ b/.github/workflows/test_functional.yml @@ -251,6 +251,7 @@ jobs: -exec echo '====== {} ======' \; -exec cat '{}' \; - name: Set artifact upload name + if: always() id: uploadname run: | # artifact name cannot contain '/' characters @@ -259,7 +260,7 @@ jobs: - name: Upload failed tests artifact if: failure() && steps.test.outcome == 'failure' - uses: actions/upload-artifact@v3 + uses: actions/upload-artifact@v4 with: name: cylc-run (${{ steps.uploadname.outputs.uploadname }}) path: ~/cylc-run/ @@ -297,7 +298,7 @@ jobs: coverage report - name: Upload coverage artifact - uses: actions/upload-artifact@v3 + uses: actions/upload-artifact@v4 with: name: coverage_${{ steps.uploadname.outputs.uploadname }} path: coverage.xml @@ -312,7 +313,7 @@ jobs: uses: actions/checkout@v4 - name: Download coverage artifacts - uses: actions/download-artifact@v3 + uses: actions/download-artifact@v4 - name: Codecov upload uses: codecov/codecov-action@v3