Skip to content

Commit c2fc29a

Browse files
authored
Merge pull request #892 from arduino/dependabot/github_actions/actions/upload-artifact-4
build(deps): bump actions/upload-artifact from 3 to 4
2 parents de711f7 + 81cd6b3 commit c2fc29a

File tree

2 files changed

+11
-10
lines changed

2 files changed

+11
-10
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ jobs:
100100
# Some might find it convenient to have CI generate the cache rather than setting up for it locally
101101
- name: Upload cache to workflow artifact
102102
if: failure() && steps.diff.outcome == 'failure'
103-
uses: actions/upload-artifact@v3
103+
uses: actions/upload-artifact@v4
104104
with:
105105
if-no-files-found: error
106106
include-hidden-files: true

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

Lines changed: 10 additions & 9 deletions
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:
@@ -81,13 +81,13 @@ jobs:
8181
file-url: https://raw.githubusercontent.com/arduino/tooling-project-assets/main/workflow-templates/assets/sync-labels/${{ matrix.filename }}
8282

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

9292
sync:
9393
needs: download
@@ -118,16 +118,17 @@ jobs:
118118
- name: Checkout repository
119119
uses: actions/checkout@v4
120120

121-
- name: Download configuration files artifact
122-
uses: actions/download-artifact@v3
121+
- name: Download configuration file artifacts
122+
uses: actions/download-artifact@v4
123123
with:
124-
name: ${{ env.CONFIGURATIONS_ARTIFACT }}
124+
merge-multiple: true
125+
pattern: ${{ env.CONFIGURATIONS_ARTIFACT_PREFIX }}*
125126
path: ${{ env.CONFIGURATIONS_FOLDER }}
126127

127-
- name: Remove unneeded artifact
128-
uses: geekyeggo/delete-artifact@v2
128+
- name: Remove unneeded artifacts
129+
uses: geekyeggo/delete-artifact@v5
129130
with:
130-
name: ${{ env.CONFIGURATIONS_ARTIFACT }}
131+
name: ${{ env.CONFIGURATIONS_ARTIFACT_PREFIX }}*
131132

132133
- name: Setup Node.js
133134
uses: actions/setup-node@v4

0 commit comments

Comments
 (0)