@@ -3,7 +3,7 @@ name: Sync Labels
3
3
4
4
env :
5
5
CONFIGURATIONS_FOLDER : .github/label-configuration-files
6
- CONFIGURATIONS_ARTIFACT : label-configuration-files
6
+ CONFIGURATIONS_ARTIFACT_PREFIX : label-configuration-file-
7
7
8
8
# See: https://docs.github.com/actions/using-workflows/events-that-trigger-workflows
9
9
on :
@@ -84,13 +84,13 @@ jobs:
84
84
file-url : https://raw.githubusercontent.com/arduino/tooling-project-assets/main/workflow-templates/assets/sync-labels/${{ matrix.filename }}
85
85
86
86
- name : Pass configuration files to next job via workflow artifact
87
- uses : actions/upload-artifact@v3
87
+ uses : actions/upload-artifact@v4
88
88
with :
89
89
path : |
90
90
*.yaml
91
91
*.yml
92
92
if-no-files-found : error
93
- name : ${{ env.CONFIGURATIONS_ARTIFACT }}
93
+ name : ${{ env.CONFIGURATIONS_ARTIFACT_PREFIX }}${{ matrix.filename }}
94
94
95
95
sync :
96
96
needs : download
@@ -124,16 +124,17 @@ jobs:
124
124
- name : Checkout repository
125
125
uses : actions/checkout@v4
126
126
127
- - name : Download configuration files artifact
128
- uses : actions/download-artifact@v3
127
+ - name : Download configuration file artifacts
128
+ uses : actions/download-artifact@v4
129
129
with :
130
- name : ${{ env.CONFIGURATIONS_ARTIFACT }}
130
+ merge-multiple : true
131
+ pattern : ${{ env.CONFIGURATIONS_ARTIFACT_PREFIX }}*
131
132
path : ${{ env.CONFIGURATIONS_FOLDER }}
132
133
133
- - name : Remove unneeded artifact
134
- uses : geekyeggo/delete-artifact@v2
134
+ - name : Remove unneeded artifacts
135
+ uses : geekyeggo/delete-artifact@v5
135
136
with :
136
- name : ${{ env.CONFIGURATIONS_ARTIFACT }}
137
+ name : ${{ env.CONFIGURATIONS_ARTIFACT_PREFIX }}*
137
138
138
139
- name : Setup Node.js
139
140
uses : actions/setup-node@v4
0 commit comments