Skip to content

Commit 7e79dfd

Browse files
authored
Bump actions/upload and actions/download (#952)
* Bump actions/download-artifact from 3 to 4 Bumps [actions/download-artifact](https://github.com/actions/download-artifact) from 3 to 4. - [Release notes](https://github.com/actions/download-artifact/releases) - [Commits](actions/download-artifact@v3...v4) --- updated-dependencies: - dependency-name: actions/download-artifact dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <[email protected]> * Bump actions/download-artifact in new step * Bump actions/upload-artifact from 3 to 4 Bumps [actions/upload-artifact](https://github.com/actions/upload-artifact) from 3 to 4. - [Release notes](https://github.com/actions/upload-artifact/releases) - [Commits](actions/upload-artifact@v3...v4) --- updated-dependencies: - dependency-name: actions/upload-artifact dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <[email protected]> * Bump actions/upload-artifact in new step * Migrate sync workflow to actions/[upload-download] to v4 See https://github.com/actions/upload-artifact/blob/main/docs/MIGRATION.md#multiple-uploads-to-the-same-named-artifact --------- Signed-off-by: dependabot[bot] <[email protected]>
1 parent fc0a137 commit 7e79dfd

File tree

4 files changed

+19
-18
lines changed

4 files changed

+19
-18
lines changed

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

+1-1
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ jobs:
105105
# Some might find it convenient to have CI generate the cache rather than setting up for it locally
106106
- name: Upload cache to workflow artifact
107107
if: failure() && steps.diff.outcome == 'failure'
108-
uses: actions/upload-artifact@v3
108+
uses: actions/upload-artifact@v4
109109
with:
110110
if-no-files-found: error
111111
name: dep-licenses-cache

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

+1-1
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,7 @@ jobs:
128128
if: runner.os == 'macOS'
129129

130130
- name: Upload artifacts
131-
uses: actions/upload-artifact@v3
131+
uses: actions/upload-artifact@v4
132132
with:
133133
name: arduino-create-agent-${{ matrix.os }}${{ matrix.arch }}
134134
path: |

.github/workflows/release.yml

+12-12
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,7 @@ jobs:
147147
if: steps.prerelease.outputs.IS_PRE != 'true'
148148

149149
- name: Upload artifacts
150-
uses: actions/upload-artifact@v3
150+
uses: actions/upload-artifact@v4
151151
with:
152152
name: ${{ env.PROJECT_NAME }}-${{ matrix.os }}-${{ matrix.arch }}
153153
path: |
@@ -174,7 +174,7 @@ jobs:
174174
token: ${{ secrets.ARDUINO_CREATE_AGENT_CI_PAT }}
175175

176176
- name: Download artifact
177-
uses: actions/download-artifact@v3
177+
uses: actions/download-artifact@v4
178178
with:
179179
name: ${{ env.PROJECT_NAME }}-macos-12-amd64 # if we want to support darwin-arm64 in the future for real this has to change.
180180
path: ${{ env.EXE_PATH }}
@@ -218,7 +218,7 @@ jobs:
218218
run: tar -cvf ArduinoCreateAgent.app_${{ matrix.arch }}.tar -C skel/ .
219219

220220
- name: Upload artifacts
221-
uses: actions/upload-artifact@v3
221+
uses: actions/upload-artifact@v4
222222
with:
223223
if-no-files-found: error
224224
name: ArduinoCreateAgent.app_${{ matrix.arch }}
@@ -241,7 +241,7 @@ jobs:
241241

242242
steps:
243243
- name: Download artifact
244-
uses: actions/download-artifact@v3
244+
uses: actions/download-artifact@v4
245245
with:
246246
name: ArduinoCreateAgent.app_${{ matrix.arch }}
247247

@@ -356,7 +356,7 @@ jobs:
356356
if: ${{ needs.build.outputs.prerelease != 'true' }}
357357

358358
- name: Upload artifact
359-
uses: actions/upload-artifact@v3
359+
uses: actions/upload-artifact@v4
360360
with:
361361
name: ArduinoCreateAgent.app_${{ matrix.arch }}_notarized
362362
path: ArduinoCreateAgent.app_${{ matrix.arch }}_notarized.zip
@@ -405,7 +405,7 @@ jobs:
405405
token: ${{ secrets.ARDUINO_CREATE_AGENT_CI_PAT }}
406406

407407
- name: Download artifact
408-
uses: actions/download-artifact@v3
408+
uses: actions/download-artifact@v4
409409
with:
410410
name: ${{ env.PROJECT_NAME }}-${{ matrix.os }}-${{ matrix.arch }}
411411
path: artifacts/${{ matrix.platform-name }}/ # path expected by installbuilder
@@ -429,7 +429,7 @@ jobs:
429429
if: matrix.os == 'ubuntu-20.04'
430430

431431
- name: Upload artifacts
432-
uses: actions/upload-artifact@v3
432+
uses: actions/upload-artifact@v4
433433
with:
434434
name: ArduinoCreateAgent-${{ matrix.platform-name }}-${{ matrix.arch }}
435435
path: ArduinoCreateAgent*
@@ -456,7 +456,7 @@ jobs:
456456

457457
steps:
458458
- name: Download artifact
459-
uses: actions/download-artifact@v3
459+
uses: actions/download-artifact@v4
460460
with:
461461
name: ArduinoCreateAgent-windows-${{ matrix.arch }}
462462

@@ -472,7 +472,7 @@ jobs:
472472
"${{ env.SIGNTOOL_PATH }}" sign -d "Arduino Create Agent" -f ${{ env.INSTALLER_CERT_WINDOWS_CER}} -csp "eToken Base Cryptographic Provider" -k "[{{${{ env.CERT_PASSWORD }}}}]=${{ env.CONTAINER_NAME }}" -fd sha256 -tr http://timestamp.digicert.com -td SHA256 -v "ArduinoCreateAgent-${GITHUB_REF##*/}-windows-${{ matrix.arch }}-installer.exe"
473473
474474
- name: Upload artifacts
475-
uses: actions/upload-artifact@v3
475+
uses: actions/upload-artifact@v4
476476
with:
477477
if-no-files-found: error
478478
name: ArduinoCreateAgent-windows-${{ matrix.arch }}-signed
@@ -494,7 +494,7 @@ jobs:
494494
token: ${{ secrets.ARDUINO_CREATE_AGENT_CI_PAT }}
495495

496496
- name: Download artifact
497-
uses: actions/download-artifact@v3
497+
uses: actions/download-artifact@v4
498498
with:
499499
name: ArduinoCreateAgent.app_${{ matrix.arch }}_notarized
500500
path: ArduinoCreateAgent.app
@@ -570,7 +570,7 @@ jobs:
570570
run: tar -cvf ArduinoCreateAgent-${GITHUB_REF##*/}-osx-${{ matrix.arch }}-installer.tar ArduinoCreateAgent-${GITHUB_REF##*/}-osx-${{ matrix.arch }}-installer.dmg
571571

572572
- name: Upload artifacts
573-
uses: actions/upload-artifact@v3
573+
uses: actions/upload-artifact@v4
574574
with:
575575
name: ArduinoCreateAgent-osx-${{ matrix.arch }}
576576
path: ArduinoCreateAgent*.tar
@@ -588,7 +588,7 @@ jobs:
588588
fetch-depth: 0 # fetch all history for the create changelog step to work properly
589589

590590
- name: Download artifact
591-
uses: actions/download-artifact@v3 # download all the artifacts
591+
uses: actions/download-artifact@v4 # download all the artifacts
592592

593593
# mandatory step because upload-release-action does not support multiple folders
594594
- name: prepare artifacts for the release

.github/workflows/sync-labels.yml

+5-4
Original file line numberDiff line numberDiff line change
@@ -71,13 +71,13 @@ jobs:
7171
file-url: https://raw.githubusercontent.com/arduino/tooling-project-assets/main/workflow-templates/assets/sync-labels/${{ matrix.filename }}
7272

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

8282
sync:
8383
needs: download
@@ -109,10 +109,11 @@ jobs:
109109
uses: actions/checkout@v4
110110

111111
- name: Download configuration files artifact
112-
uses: actions/download-artifact@v3
112+
uses: actions/download-artifact@v4
113113
with:
114-
name: ${{ env.CONFIGURATIONS_ARTIFACT }}
114+
pattern: ${{ env.CONFIGURATIONS_ARTIFACT }}-* # Download all configuration files
115115
path: ${{ env.CONFIGURATIONS_FOLDER }}
116+
merge-multiple: true
116117

117118
- name: Remove unneeded artifact
118119
uses: geekyeggo/delete-artifact@v5

0 commit comments

Comments
 (0)