Skip to content

Commit 9f7b0b4

Browse files
authored
Merge pull request #331 from arduino/dependabot/github_actions/actions/upload-artifact-4
Bump actions/upload-artifact from 3 to 4
2 parents 43d62ac + 30c2f79 commit 9f7b0b4

File tree

2 files changed

+11
-10
lines changed

2 files changed

+11
-10
lines changed

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

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

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

+10-9
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ name: Sync Labels
33

44
env:
55
CONFIGURATIONS_FOLDER: .github/label-configuration-files
6-
CONFIGURATIONS_ARTIFACT: label-configuration-files
6+
CONFIGURATIONS_ARTIFACT_PREFIX: label-configuration-file-
77

88
# See: https://docs.github.com/actions/using-workflows/events-that-trigger-workflows
99
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)