From 475bf4d66b834a4cecfca7eacfc2b0a0cdb1caae Mon Sep 17 00:00:00 2001 From: Elmar Fasel Date: Mon, 18 Dec 2023 09:15:36 +0100 Subject: [PATCH] Use v4 of upload-artifact and download-artifact --- e2e/actions/artifacts/workflowExpected.yml | 6 +++--- e2e/actions/deploy-cf/workflowExpected.yml | 10 +++++----- e2e/actions/deploy-ml/workflowExpected.yml | 4 ++-- e2e/actions/docker-compose/workflowExpected.yml | 6 +++--- e2e/actions/docker-push/workflowExpected.yml | 10 +++++----- renderers/actions/artifacts.go | 4 ++-- 6 files changed, 20 insertions(+), 20 deletions(-) diff --git a/e2e/actions/artifacts/workflowExpected.yml b/e2e/actions/artifacts/workflowExpected.yml index bf3fed94..36c46995 100644 --- a/e2e/actions/artifacts/workflowExpected.yml +++ b/e2e/actions/artifacts/workflowExpected.yml @@ -40,7 +40,7 @@ jobs: run: tar -cvf /tmp/halfpipe-artifacts.tar e2e/actions/artifacts/foo.txt e2e/actions/artifacts/target/bar.txt e2e/actions/test.sh working-directory: ${{ github.workspace }} - name: Upload artifacts - uses: actions/upload-artifact@v3 + uses: actions/upload-artifact@v4 with: name: artifacts path: /tmp/halfpipe-artifacts.tar @@ -51,7 +51,7 @@ jobs: working-directory: ${{ github.workspace }} - name: Upload artifacts-failure if: failure() - uses: actions/upload-artifact@v3 + uses: actions/upload-artifact@v4 with: name: artifacts-failure path: /tmp/halfpipe-artifacts.tar @@ -71,7 +71,7 @@ jobs: ssh-key: ${{ secrets.EE_GITHUB_PRIVATE_KEY }} submodules: recursive - name: Download artifacts - uses: actions/download-artifact@v3 + uses: actions/download-artifact@v4 with: name: artifacts - name: Extract artifacts diff --git a/e2e/actions/deploy-cf/workflowExpected.yml b/e2e/actions/deploy-cf/workflowExpected.yml index a9f2dc0c..59c4c0f6 100644 --- a/e2e/actions/deploy-cf/workflowExpected.yml +++ b/e2e/actions/deploy-cf/workflowExpected.yml @@ -43,7 +43,7 @@ jobs: run: tar -cvf /tmp/halfpipe-artifacts.tar e2e/actions/deploy-cf/foo.html working-directory: ${{ github.workspace }} - name: Upload artifacts - uses: actions/upload-artifact@v3 + uses: actions/upload-artifact@v4 with: name: artifacts path: /tmp/halfpipe-artifacts.tar @@ -79,7 +79,7 @@ jobs: ssh-key: ${{ secrets.EE_GITHUB_PRIVATE_KEY }} submodules: recursive - name: Download artifacts - uses: actions/download-artifact@v3 + uses: actions/download-artifact@v4 with: name: artifacts - name: Extract artifacts @@ -194,7 +194,7 @@ jobs: ssh-key: ${{ secrets.EE_GITHUB_PRIVATE_KEY }} submodules: recursive - name: Download artifacts - uses: actions/download-artifact@v3 + uses: actions/download-artifact@v4 with: name: artifacts - name: Extract artifacts @@ -310,7 +310,7 @@ jobs: ssh-key: ${{ secrets.EE_GITHUB_PRIVATE_KEY }} submodules: recursive - name: Download artifacts - uses: actions/download-artifact@v3 + uses: actions/download-artifact@v4 with: name: artifacts - name: Extract artifacts @@ -609,7 +609,7 @@ jobs: ssh-key: ${{ secrets.EE_GITHUB_PRIVATE_KEY }} submodules: recursive - name: Download artifacts - uses: actions/download-artifact@v3 + uses: actions/download-artifact@v4 with: name: artifacts - name: Extract artifacts diff --git a/e2e/actions/deploy-ml/workflowExpected.yml b/e2e/actions/deploy-ml/workflowExpected.yml index baec31cd..79ec1e98 100644 --- a/e2e/actions/deploy-ml/workflowExpected.yml +++ b/e2e/actions/deploy-ml/workflowExpected.yml @@ -40,7 +40,7 @@ jobs: run: tar -cvf /tmp/halfpipe-artifacts.tar e2e/target/xquery.zip working-directory: ${{ github.workspace }} - name: Upload artifacts - uses: actions/upload-artifact@v3 + uses: actions/upload-artifact@v4 with: name: artifacts path: /tmp/halfpipe-artifacts.tar @@ -60,7 +60,7 @@ jobs: ssh-key: ${{ secrets.EE_GITHUB_PRIVATE_KEY }} submodules: recursive - name: Download artifacts - uses: actions/download-artifact@v3 + uses: actions/download-artifact@v4 with: name: artifacts - name: Extract artifacts diff --git a/e2e/actions/docker-compose/workflowExpected.yml b/e2e/actions/docker-compose/workflowExpected.yml index 6addbb32..af132704 100644 --- a/e2e/actions/docker-compose/workflowExpected.yml +++ b/e2e/actions/docker-compose/workflowExpected.yml @@ -50,7 +50,7 @@ jobs: run: tar -cvf /tmp/halfpipe-artifacts.tar e2e/actions/docker-compose/foo e2e/actions/docker-compose/bar/baz working-directory: ${{ github.workspace }} - name: Upload artifacts - uses: actions/upload-artifact@v3 + uses: actions/upload-artifact@v4 with: name: artifacts path: /tmp/halfpipe-artifacts.tar @@ -61,7 +61,7 @@ jobs: working-directory: ${{ github.workspace }} - name: Upload artifacts-failure if: failure() - uses: actions/upload-artifact@v3 + uses: actions/upload-artifact@v4 with: name: artifacts-failure path: /tmp/halfpipe-artifacts.tar @@ -95,7 +95,7 @@ jobs: ssh-key: ${{ secrets.EE_GITHUB_PRIVATE_KEY }} submodules: recursive - name: Download artifacts - uses: actions/download-artifact@v3 + uses: actions/download-artifact@v4 with: name: artifacts - name: Extract artifacts diff --git a/e2e/actions/docker-push/workflowExpected.yml b/e2e/actions/docker-push/workflowExpected.yml index 8ac5485b..31317eaf 100644 --- a/e2e/actions/docker-push/workflowExpected.yml +++ b/e2e/actions/docker-push/workflowExpected.yml @@ -43,7 +43,7 @@ jobs: run: tar -cvf /tmp/halfpipe-artifacts.tar e2e/actions/docker-push/target/app.zip working-directory: ${{ github.workspace }} - name: Upload artifacts - uses: actions/upload-artifact@v3 + uses: actions/upload-artifact@v4 with: name: artifacts path: /tmp/halfpipe-artifacts.tar @@ -63,7 +63,7 @@ jobs: ssh-key: ${{ secrets.EE_GITHUB_PRIVATE_KEY }} submodules: recursive - name: Download artifacts - uses: actions/download-artifact@v3 + uses: actions/download-artifact@v4 with: name: artifacts - name: Extract artifacts @@ -141,7 +141,7 @@ jobs: ssh-key: ${{ secrets.EE_GITHUB_PRIVATE_KEY }} submodules: recursive - name: Download artifacts - uses: actions/download-artifact@v3 + uses: actions/download-artifact@v4 with: name: artifacts - name: Extract artifacts @@ -215,7 +215,7 @@ jobs: ssh-key: ${{ secrets.EE_GITHUB_PRIVATE_KEY }} submodules: recursive - name: Download artifacts - uses: actions/download-artifact@v3 + uses: actions/download-artifact@v4 with: name: artifacts - name: Extract artifacts @@ -281,7 +281,7 @@ jobs: ssh-key: ${{ secrets.EE_GITHUB_PRIVATE_KEY }} submodules: recursive - name: Download artifacts - uses: actions/download-artifact@v3 + uses: actions/download-artifact@v4 with: name: artifacts - name: Extract artifacts diff --git a/renderers/actions/artifacts.go b/renderers/actions/artifacts.go index ba9a6901..16c56d22 100644 --- a/renderers/actions/artifacts.go +++ b/renderers/actions/artifacts.go @@ -31,7 +31,7 @@ func (a *Actions) saveArtifactSteps(paths []string, name string) Steps { }, { Name: "Upload " + name, - Uses: "actions/upload-artifact@v3", + Uses: "actions/upload-artifact@v4", With: With{ "name": name, "path": "/tmp/halfpipe-artifacts.tar", @@ -45,7 +45,7 @@ func (a *Actions) restoreArtifacts() Steps { return Steps{ { Name: "Download artifacts", - Uses: "actions/download-artifact@v3", + Uses: "actions/download-artifact@v4", With: With{ "name": "artifacts", },