@@ -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 :
@@ -81,13 +81,13 @@ jobs:
81
81
file-url : https://raw.githubusercontent.com/arduino/tooling-project-assets/main/workflow-templates/assets/sync-labels/${{ matrix.filename }}
82
82
83
83
- name : Pass configuration files to next job via workflow artifact
84
- uses : actions/upload-artifact@v3
84
+ uses : actions/upload-artifact@v4
85
85
with :
86
86
path : |
87
87
*.yaml
88
88
*.yml
89
89
if-no-files-found : error
90
- name : ${{ env.CONFIGURATIONS_ARTIFACT }}
90
+ name : ${{ env.CONFIGURATIONS_ARTIFACT_PREFIX }}${{ matrix.filename }}
91
91
92
92
sync :
93
93
needs : download
@@ -118,16 +118,17 @@ jobs:
118
118
- name : Checkout repository
119
119
uses : actions/checkout@v4
120
120
121
- - name : Download configuration files artifact
122
- uses : actions/download-artifact@v3
121
+ - name : Download configuration file artifacts
122
+ uses : actions/download-artifact@v4
123
123
with :
124
- name : ${{ env.CONFIGURATIONS_ARTIFACT }}
124
+ merge-multiple : true
125
+ pattern : ${{ env.CONFIGURATIONS_ARTIFACT_PREFIX }}*
125
126
path : ${{ env.CONFIGURATIONS_FOLDER }}
126
127
127
- - name : Remove unneeded artifact
128
- uses : geekyeggo/delete-artifact@v2
128
+ - name : Remove unneeded artifacts
129
+ uses : geekyeggo/delete-artifact@v5
129
130
with :
130
- name : ${{ env.CONFIGURATIONS_ARTIFACT }}
131
+ name : ${{ env.CONFIGURATIONS_ARTIFACT_PREFIX }}*
131
132
132
133
- name : Setup Node.js
133
134
uses : actions/setup-node@v4
0 commit comments