Skip to content

Commit 2c9dab6

Browse files
authored
Merge pull request #417 from arduino/dependabot/github_actions/actions/upload-artifact-4
Bump actions/upload-artifact from 3 to 4
2 parents e935542 + 17cead1 commit 2c9dab6

File tree

3 files changed

+12
-11
lines changed

3 files changed

+12
-11
lines changed

.github/workflows/check-order-metadata-task.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ jobs:
8080

8181
- name: Upload corrected file to workflow artifact
8282
if: failure() && steps.check-category-order-metadata.outcome == 'failure'
83-
uses: actions/upload-artifact@v3
83+
uses: actions/upload-artifact@v4
8484
with:
8585
if-no-files-found: error
8686
name: ${{ env.ARTIFACT_NAME }}

.github/workflows/check-toc-task.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ jobs:
9696

9797
- name: Upload corrected file to workflow artifact
9898
if: failure() && steps.check-toc.outcome == 'failure'
99-
uses: actions/upload-artifact@v3
99+
uses: actions/upload-artifact@v4
100100
with:
101101
if-no-files-found: error
102102
name: ${{ env.ARTIFACT_NAME }}

.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:
@@ -80,13 +80,13 @@ jobs:
8080
file-url: https://raw.githubusercontent.com/arduino/tooling-project-assets/main/workflow-templates/assets/sync-labels/${{ matrix.filename }}
8181

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

9191
sync:
9292
needs: download
@@ -117,16 +117,17 @@ jobs:
117117
- name: Checkout repository
118118
uses: actions/checkout@v4
119119

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

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

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

0 commit comments

Comments
 (0)