Skip to content

Commit 6c45063

Browse files
authored
Merge pull request #231 from arduino/dependabot/github_actions/actions/upload-artifact-4
Bump actions/upload-artifact from 3 to 4
2 parents 263c40c + 6792573 commit 6c45063

File tree

4 files changed

+26
-20
lines changed

4 files changed

+26
-20
lines changed

.github/workflows/check-go-dependencies-task.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@ jobs:
111111
# Some might find it convenient to have CI generate the cache rather than setting up for it locally
112112
- name: Upload cache to workflow artifact
113113
if: failure() && steps.diff.outcome == 'failure'
114-
uses: actions/upload-artifact@v3
114+
uses: actions/upload-artifact@v4
115115
with:
116116
if-no-files-found: error
117117
include-hidden-files: true

.github/workflows/compare-performance.yml

+14-9
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
name: Compare Performance
22

33
env:
4-
REPORTS_ARTIFACT_NAME: reports
4+
REPORTS_ARTIFACT_PREFIX: reports-
55

66
# See: https://docs.github.com/en/free-pro-team@latest/actions/reference/events-that-trigger-workflows
77
on:
@@ -85,16 +85,20 @@ jobs:
8585
matrix:
8686
data:
8787
# Use two copies of each job to catch job-specific anomalous durations.
88-
- ref: ${{ github.ref }} # The tip of the branch selected in the workflow dispatch dialog's "Use workflow from" menu
88+
- artifact-suffix: tip-run-1
89+
ref: ${{ github.ref }} # The tip of the branch selected in the workflow dispatch dialog's "Use workflow from" menu
8990
description: tip run 1
9091
position: after
91-
- ref: ${{ github.ref }}
92+
- artifact-suffix: tip-run-2
93+
ref: ${{ github.ref }}
9294
description: tip run 2
9395
position: after
94-
- ref: ${{ needs.init.outputs.base-ref }}
96+
- artifact-suffix: comparison-run-1
97+
ref: ${{ needs.init.outputs.base-ref }}
9598
description: comparison run 1
9699
position: before
97-
- ref: ${{ needs.init.outputs.base-ref }}
100+
- artifact-suffix: comparison-run-2
101+
ref: ${{ needs.init.outputs.base-ref }}
98102
description: comparison run 2
99103
position: before
100104

@@ -294,11 +298,11 @@ jobs:
294298
EOF
295299
296300
- name: Upload report to a workflow artifact
297-
uses: actions/upload-artifact@v3
301+
uses: actions/upload-artifact@v4
298302
with:
299303
if-no-files-found: error
300304
path: ${{ env.REPORTS_PATH }}
301-
name: ${{ env.REPORTS_ARTIFACT_NAME }}
305+
name: ${{ env.REPORTS_ARTIFACT_PREFIX }}${{ matrix.data.artifact-suffix }}
302306

303307
results:
304308
needs: run
@@ -310,10 +314,11 @@ jobs:
310314

311315
steps:
312316
- name: Download reports
313-
uses: actions/download-artifact@v3
317+
uses: actions/download-artifact@v4
314318
with:
315-
name: ${{ env.REPORTS_ARTIFACT_NAME }}
319+
merge-multiple: true
316320
path: ${{ env.REPORTS_PATH }}
321+
pattern: ${{ env.REPORTS_ARTIFACT_PREFIX }}*
317322

318323
- name: Print results
319324
shell: python

.github/workflows/publish-go-tester-task.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ jobs:
9494
"./LICENSE.txt"
9595
9696
- name: Save binary as workflow artifact
97-
uses: actions/upload-artifact@v3
97+
uses: actions/upload-artifact@v4
9898
with:
9999
if-no-files-found: error
100100
path: ${{ env.BUILD_ARCHIVE_PATH }}

.github/workflows/sync-labels-npm.yml

+10-9
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ env:
55
# See: https://github.com/actions/setup-node/#readme
66
NODE_VERSION: 16.x
77
CONFIGURATIONS_FOLDER: .github/label-configuration-files
8-
CONFIGURATIONS_ARTIFACT: label-configuration-files
8+
CONFIGURATIONS_ARTIFACT_PREFIX: label-configuration-file-
99

1010
# See: https://docs.github.com/actions/using-workflows/events-that-trigger-workflows
1111
on:
@@ -84,13 +84,13 @@ jobs:
8484
file-url: https://raw.githubusercontent.com/arduino/tooling-project-assets/main/workflow-templates/assets/sync-labels/${{ matrix.filename }}
8585

8686
- name: Pass configuration files to next job via workflow artifact
87-
uses: actions/upload-artifact@v3
87+
uses: actions/upload-artifact@v4
8888
with:
8989
path: |
9090
*.yaml
9191
*.yml
9292
if-no-files-found: error
93-
name: ${{ env.CONFIGURATIONS_ARTIFACT }}
93+
name: ${{ env.CONFIGURATIONS_ARTIFACT_PREFIX }}${{ matrix.filename }}
9494

9595
sync:
9696
needs: download
@@ -124,16 +124,17 @@ jobs:
124124
- name: Checkout repository
125125
uses: actions/checkout@v4
126126

127-
- name: Download configuration files artifact
128-
uses: actions/download-artifact@v3
127+
- name: Download configuration file artifacts
128+
uses: actions/download-artifact@v4
129129
with:
130-
name: ${{ env.CONFIGURATIONS_ARTIFACT }}
130+
merge-multiple: true
131+
pattern: ${{ env.CONFIGURATIONS_ARTIFACT_PREFIX }}*
131132
path: ${{ env.CONFIGURATIONS_FOLDER }}
132133

133-
- name: Remove unneeded artifact
134-
uses: geekyeggo/delete-artifact@v2
134+
- name: Remove unneeded artifacts
135+
uses: geekyeggo/delete-artifact@v5
135136
with:
136-
name: ${{ env.CONFIGURATIONS_ARTIFACT }}
137+
name: ${{ env.CONFIGURATIONS_ARTIFACT_PREFIX }}*
137138

138139
- name: Setup Node.js
139140
uses: actions/setup-node@v4

0 commit comments

Comments
 (0)