|
19 | 19 |
|
20 | 20 | env:
|
21 | 21 | CONFIGURATIONS_FOLDER: .github/label-configuration-files
|
22 |
| - CONFIGURATIONS_ARTIFACT: label-configuration-files |
| 22 | + CONFIGURATIONS_ARTIFACT_PREFIX: label-configuration-file- |
23 | 23 |
|
24 | 24 | jobs:
|
25 | 25 | check:
|
@@ -70,13 +70,13 @@ jobs:
|
70 | 70 | file-url: https://raw.githubusercontent.com/arduino/tooling-project-assets/main/workflow-templates/assets/sync-labels/${{ matrix.filename }}
|
71 | 71 |
|
72 | 72 | - name: Pass configuration files to next job via workflow artifact
|
73 |
| - uses: actions/upload-artifact@v3 |
| 73 | + uses: actions/upload-artifact@v4 |
74 | 74 | with:
|
75 | 75 | path: |
|
76 | 76 | *.yaml
|
77 | 77 | *.yml
|
78 | 78 | if-no-files-found: error
|
79 |
| - name: ${{ env.CONFIGURATIONS_ARTIFACT }} |
| 79 | + name: ${{ env.CONFIGURATIONS_ARTIFACT_PREFIX }}${{ matrix.filename }} |
80 | 80 |
|
81 | 81 | sync:
|
82 | 82 | needs: download
|
@@ -107,16 +107,17 @@ jobs:
|
107 | 107 | - name: Checkout repository
|
108 | 108 | uses: actions/checkout@v4
|
109 | 109 |
|
110 |
| - - name: Download configuration files artifact |
111 |
| - uses: actions/download-artifact@v3 |
| 110 | + - name: Download configuration file artifacts |
| 111 | + uses: actions/download-artifact@v4 |
112 | 112 | with:
|
113 |
| - name: ${{ env.CONFIGURATIONS_ARTIFACT }} |
| 113 | + merge-multiple: true |
| 114 | + pattern: ${{ env.CONFIGURATIONS_ARTIFACT_PREFIX }}* |
114 | 115 | path: ${{ env.CONFIGURATIONS_FOLDER }}
|
115 | 116 |
|
116 |
| - - name: Remove unneeded artifact |
117 |
| - uses: geekyeggo/delete-artifact@v2 |
| 117 | + - name: Remove unneeded artifacts |
| 118 | + uses: geekyeggo/delete-artifact@v5 |
118 | 119 | with:
|
119 |
| - name: ${{ env.CONFIGURATIONS_ARTIFACT }} |
| 120 | + name: ${{ env.CONFIGURATIONS_ARTIFACT_PREFIX }}* |
120 | 121 |
|
121 | 122 | - name: Merge label configuration files
|
122 | 123 | run: |
|
|
0 commit comments