Skip to content

Commit

Permalink
Merge pull request #226 from springernature/upload-and-download-artif…
Browse files Browse the repository at this point in the history
…act-update

Use v4 of upload-artifact and download-artifact
  • Loading branch information
stigtermichiel authored Dec 18, 2023
2 parents 0a6f8f8 + 475bf4d commit 75f9850
Show file tree
Hide file tree
Showing 6 changed files with 20 additions and 20 deletions.
6 changes: 3 additions & 3 deletions e2e/actions/artifacts/workflowExpected.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand All @@ -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
Expand Down
10 changes: 5 additions & 5 deletions e2e/actions/deploy-cf/workflowExpected.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down
4 changes: 2 additions & 2 deletions e2e/actions/deploy-ml/workflowExpected.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand Down
6 changes: 3 additions & 3 deletions e2e/actions/docker-compose/workflowExpected.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand Down Expand Up @@ -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
Expand Down
10 changes: 5 additions & 5 deletions e2e/actions/docker-push/workflowExpected.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down
4 changes: 2 additions & 2 deletions renderers/actions/artifacts.go
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand All @@ -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",
},
Expand Down

0 comments on commit 75f9850

Please sign in to comment.