Skip to content

Commit bba8a9e

Browse files
authored
Merge pull request #68 from arduino/dependabot/github_actions/actions/upload-artifact-4
Bump actions/upload-artifact from 3 to 4
2 parents c901207 + 39fed51 commit bba8a9e

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: /monitor/serial-monitor/
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-npm.yml

Lines changed: 10 additions & 9 deletions
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:
@@ -83,13 +83,13 @@ jobs:
8383
file-url: https://raw.githubusercontent.com/arduino/tooling-project-assets/main/workflow-templates/assets/sync-labels/${{ matrix.filename }}
8484

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

9494
sync:
9595
needs: download
@@ -123,16 +123,17 @@ jobs:
123123
- name: Checkout repository
124124
uses: actions/checkout@v4
125125

126-
- name: Download configuration files artifact
127-
uses: actions/download-artifact@v3
126+
- name: Download configuration file artifacts
127+
uses: actions/download-artifact@v4
128128
with:
129-
name: ${{ env.CONFIGURATIONS_ARTIFACT }}
129+
merge-multiple: true
130+
pattern: ${{ env.CONFIGURATIONS_ARTIFACT_PREFIX }}*
130131
path: ${{ env.CONFIGURATIONS_FOLDER }}
131132

132-
- name: Remove unneeded artifact
133-
uses: geekyeggo/delete-artifact@v2
133+
- name: Remove unneeded artifacts
134+
uses: geekyeggo/delete-artifact@v5
134135
with:
135-
name: ${{ env.CONFIGURATIONS_ARTIFACT }}
136+
name: ${{ env.CONFIGURATIONS_ARTIFACT_PREFIX }}*
136137

137138
- name: Setup Node.js
138139
uses: actions/setup-node@v4

0 commit comments

Comments
 (0)