Skip to content

Commit 4a09a96

Browse files
authored
Merge pull request #70 from arduino/dependabot/github_actions/actions/upload-artifact-4
Bump actions/upload-artifact from 3 to 4
2 parents 187d522 + 084e7c0 commit 4a09a96

File tree

4 files changed

+41
-30
lines changed

4 files changed

+41
-30
lines changed

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

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

.github/workflows/publish-go-tester-task.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,7 @@ jobs:
131131
132132
# Transfer builds to artifacts job
133133
- name: Upload build artifact
134-
uses: actions/upload-artifact@v3
134+
uses: actions/upload-artifact@v4
135135
with:
136136
path: ${{ env.DIST_DIR }}/${{ matrix.os.path }}
137137
name: ${{ matrix.os.artifact-name }}
@@ -146,7 +146,7 @@ jobs:
146146

147147
steps:
148148
- name: Download build artifacts
149-
uses: actions/download-artifact@v3
149+
uses: actions/download-artifact@v4
150150

151151
- name: Create checksum file
152152
run: |
@@ -161,7 +161,7 @@ jobs:
161161
done
162162
163163
- name: Upload checksum artifact
164-
uses: actions/upload-artifact@v3
164+
uses: actions/upload-artifact@v4
165165
with:
166166
path: ./*checksums.txt
167167
name: checksums

.github/workflows/release-go-task.yml

Lines changed: 27 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ env:
99
# The project's folder on Arduino's download server for uploading builds
1010
AWS_PLUGIN_TARGET: /discovery/serial-discovery/
1111
AWS_REGION: "us-east-1"
12-
ARTIFACT_NAME: dist
12+
ARTIFACT_PREFIX: dist-
1313

1414
on:
1515
push:
@@ -24,16 +24,25 @@ jobs:
2424

2525
strategy:
2626
matrix:
27-
task:
28-
- Windows_32bit
29-
- Windows_64bit
30-
- Linux_32bit
31-
- Linux_64bit
32-
- Linux_ARMv6
33-
- Linux_ARMv7
34-
- Linux_ARM64
35-
- macOS_64bit
36-
- macOS_ARM64
27+
os:
28+
- task: Windows_32bit
29+
artifact-suffix: Windows_32bit
30+
- task: Windows_64bit
31+
artifact-suffix: Windows_64bit
32+
- task: Linux_32bit
33+
artifact-suffix: Linux_32bit
34+
- task: Linux_64bit
35+
artifact-suffix: Linux_64bit
36+
- task: Linux_ARMv6
37+
artifact-suffix: Linux_ARMv6
38+
- task: Linux_ARMv7
39+
artifact-suffix: Linux_ARMv7
40+
- task: Linux_ARM64
41+
artifact-suffix: Linux_ARM64
42+
- task: macOS_64bit
43+
artifact-suffix: macOS_64bit
44+
- task: macOS_ARM64
45+
artifact-suffix: macOS_ARM64
3746

3847
steps:
3948
- name: Checkout repository
@@ -43,7 +52,7 @@ jobs:
4352

4453
- name: Create changelog
4554
# Avoid creating the same changelog for each os
46-
if: matrix.task == 'Windows_32bit'
55+
if: matrix.os.task == 'Windows_32bit'
4756
uses: arduino/create-changelog@v1
4857
with:
4958
tag-regex: '^v[0-9]+\.[0-9]+\.[0-9]+.*$'
@@ -58,13 +67,13 @@ jobs:
5867
version: 3.x
5968

6069
- name: Build
61-
run: task dist:${{ matrix.task }}
70+
run: task dist:${{ matrix.os.task }}
6271

6372
- name: Upload artifacts
64-
uses: actions/upload-artifact@v3
73+
uses: actions/upload-artifact@v4
6574
with:
6675
if-no-files-found: error
67-
name: ${{ env.ARTIFACT_NAME }}
76+
name: ${{ env.ARTIFACT_PREFIX }}${{ matrix.os.artifact-suffix }}
6877
path: ${{ env.DIST_DIR }}
6978

7079
create-release:
@@ -77,9 +86,10 @@ jobs:
7786

7887
steps:
7988
- name: Download artifact
80-
uses: actions/download-artifact@v3
89+
uses: actions/download-artifact@v4
8190
with:
82-
name: ${{ env.ARTIFACT_NAME }}
91+
pattern: ${{ env.ARTIFACT_PREFIX }}*
92+
merge-multiple: true
8393
path: ${{ env.DIST_DIR }}
8494

8595
- name: Create checksum file

.github/workflows/sync-labels.yml

Lines changed: 10 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ on:
1919

2020
env:
2121
CONFIGURATIONS_FOLDER: .github/label-configuration-files
22-
CONFIGURATIONS_ARTIFACT: label-configuration-files
22+
CONFIGURATIONS_ARTIFACT_PREFIX: label-configuration-file-
2323

2424
jobs:
2525
check:
@@ -73,13 +73,13 @@ jobs:
7373
file-url: https://raw.githubusercontent.com/arduino/tooling-project-assets/main/workflow-templates/assets/sync-labels/${{ matrix.filename }}
7474

7575
- name: Pass configuration files to next job via workflow artifact
76-
uses: actions/upload-artifact@v3
76+
uses: actions/upload-artifact@v4
7777
with:
7878
path: |
7979
*.yaml
8080
*.yml
8181
if-no-files-found: error
82-
name: ${{ env.CONFIGURATIONS_ARTIFACT }}
82+
name: ${{ env.CONFIGURATIONS_ARTIFACT_PREFIX }}${{ matrix.filename }}
8383

8484
sync:
8585
needs: download
@@ -113,16 +113,17 @@ jobs:
113113
- name: Checkout repository
114114
uses: actions/checkout@v4
115115

116-
- name: Download configuration files artifact
117-
uses: actions/download-artifact@v3
116+
- name: Download configuration file artifacts
117+
uses: actions/download-artifact@v4
118118
with:
119-
name: ${{ env.CONFIGURATIONS_ARTIFACT }}
119+
merge-multiple: true
120+
pattern: ${{ env.CONFIGURATIONS_ARTIFACT_PREFIX }}*
120121
path: ${{ env.CONFIGURATIONS_FOLDER }}
121122

122-
- name: Remove unneeded artifact
123-
uses: geekyeggo/delete-artifact@v2
123+
- name: Remove unneeded artifacts
124+
uses: geekyeggo/delete-artifact@v5
124125
with:
125-
name: ${{ env.CONFIGURATIONS_ARTIFACT }}
126+
name: ${{ env.CONFIGURATIONS_ARTIFACT_PREFIX }}*
126127

127128
- name: Merge label configuration files
128129
run: |

0 commit comments

Comments
 (0)