From a970f55b555f69c5fcb40374eb50ad7b98cc8f96 Mon Sep 17 00:00:00 2001 From: Kyle Harding Date: Tue, 19 Dec 2023 13:57:25 -0500 Subject: [PATCH] Update actions/upload-artifact to v4 Also ensure we are generating unique artifact names on upload. Change-type: patch Signed-off-by: Kyle Harding See: https://github.com/product-os/flowzone/pull/827 --- .github/actions/publish/action.yml | 6 +++--- .github/actions/test/action.yml | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/actions/publish/action.yml b/.github/actions/publish/action.yml index 6f5c73d5..e0fc7e08 100644 --- a/.github/actions/publish/action.yml +++ b/.github/actions/publish/action.yml @@ -25,7 +25,7 @@ runs: using: "composite" steps: - name: Download custom source artifact - uses: actions/download-artifact@v3 + uses: actions/download-artifact@v4 with: name: custom-${{ github.event.pull_request.head.sha || github.event.head_commit.id }}-${{ runner.os }} path: ${{ runner.temp }} @@ -162,8 +162,8 @@ runs: -exec yq -i e .stagingPercentage=\"$percentage\" {} \; - name: Upload artifacts - uses: actions/upload-artifact@v3 + uses: actions/upload-artifact@v4 with: - name: gh-release-${{ github.event.pull_request.head.sha || github.event.head_commit.id }} + name: gh-release-${{ github.event.pull_request.head.sha || github.event.head_commit.id }}-${{ runner.os }} path: dist retention-days: 1 diff --git a/.github/actions/test/action.yml b/.github/actions/test/action.yml index 39ecaabd..e55c275a 100644 --- a/.github/actions/test/action.yml +++ b/.github/actions/test/action.yml @@ -57,7 +57,7 @@ runs: run: C:\"Program Files"\Git\usr\bin\tar.exe --force-local -acf ${{ runner.temp }}\custom.tgz . - name: Upload custom artifact - uses: actions/upload-artifact@v3 + uses: actions/upload-artifact@v4 with: name: custom-${{ github.event.pull_request.head.sha || github.event.head_commit.id }}-${{ runner.os }} path: ${{ runner.temp }}/custom.tgz