Skip to content

Commit e7bd6c4

Browse files
authored
[ci] upgrade upload and download actions to v4 (#13516)
1 parent 65c4abd commit e7bd6c4

File tree

3 files changed

+18
-10
lines changed

3 files changed

+18
-10
lines changed

.github/workflows/bazel.yml

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,11 @@ on:
4646
required: false
4747
type: string
4848
default: ''
49+
artifact-name:
50+
description: Name of artifact to upload
51+
required: false
52+
type: string
53+
default: 'ignore-artifacts'
4954

5055
jobs:
5156
bazel:
@@ -141,11 +146,13 @@ jobs:
141146
prerelease: true
142147
files: ${{ inputs.nightly-release-files }}
143148
- name: Save changes
149+
if: ${{ always() && inputs.artifact-name != 'ignore-artifacts' }}
144150
run: |
145151
git diff > changes.patch
146152
- name: "Upload changes"
147-
uses: actions/upload-artifact@v3
153+
if: ${{ always() && inputs.artifact-name != 'ignore-artifacts' }}
154+
uses: actions/upload-artifact@v4
148155
with:
149-
name: patch-file
156+
name: ${{ inputs.artifact-name }}
150157
path: changes.patch
151158
retention-days: 6

.github/workflows/ci-rust.yml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ jobs:
5555
- name: "Rename binary"
5656
run: mv rust/target/release/selenium-manager.exe selenium-manager-windows.exe
5757
- name: "Upload release binary"
58-
uses: actions/upload-artifact@v3
58+
uses: actions/upload-artifact@v4
5959
with:
6060
name: selenium-manager-windows
6161
path: selenium-manager-windows.exe
@@ -83,7 +83,7 @@ jobs:
8383
- name: "Rename binary"
8484
run: mv rust/target/debug/selenium-manager.exe selenium-manager-windows-debug.exe
8585
- name: "Upload release binary"
86-
uses: actions/upload-artifact@v3
86+
uses: actions/upload-artifact@v4
8787
with:
8888
name: selenium-manager-windows-debug
8989
path: selenium-manager-windows-debug.exe
@@ -111,7 +111,7 @@ jobs:
111111
- name: "Rename binary"
112112
run: mv rust/target/x86_64-unknown-linux-musl/release/selenium-manager selenium-manager-linux
113113
- name: "Upload release binary"
114-
uses: actions/upload-artifact@v3
114+
uses: actions/upload-artifact@v4
115115
with:
116116
name: selenium-manager-linux
117117
path: selenium-manager-linux
@@ -140,7 +140,7 @@ jobs:
140140
tar -cvf ../../../../selenium-manager-linux-debug.tar selenium-manager
141141
working-directory: rust
142142
- name: "Upload release binary"
143-
uses: actions/upload-artifact@v3
143+
uses: actions/upload-artifact@v4
144144
with:
145145
name: selenium-manager-linux-debug
146146
path: selenium-manager-linux-debug.tar
@@ -170,7 +170,7 @@ jobs:
170170
target/x86_64-apple-darwin/release/selenium-manager
171171
working-directory: rust
172172
- name: "Upload release binary"
173-
uses: actions/upload-artifact@v3
173+
uses: actions/upload-artifact@v4
174174
with:
175175
name: selenium-manager-macos
176176
path: rust/target/selenium-manager-macos
@@ -202,7 +202,7 @@ jobs:
202202
tar -cvf ../../selenium-manager-macos-debug.tar selenium-manager
203203
working-directory: rust
204204
- name: "Upload release binary"
205-
uses: actions/upload-artifact@v3
205+
uses: actions/upload-artifact@v4
206206
with:
207207
name: selenium-manager-macos-debug
208208
path: selenium-manager-macos-debug.tar
@@ -220,7 +220,7 @@ jobs:
220220
token: ${{ secrets.SELENIUM_CI_TOKEN }}
221221
repository: SeleniumHQ/selenium_manager_artifacts
222222
- name: "Download Artifacts"
223-
uses: actions/download-artifact@v2
223+
uses: actions/download-artifact@v4
224224
with:
225225
path: artifacts
226226
- name: "Prepare and Commit"

.github/workflows/pin-browsers.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ jobs:
1212
name: Pin Browsers
1313
cache-key: pin-browsers
1414
run: bazel run //scripts:pinned_browsers
15+
artifact-name: pinned-browsers
1516

1617
pull-request:
1718
if: github.repository_owner == 'seleniumhq'
@@ -23,7 +24,7 @@ jobs:
2324
- name: Download patch
2425
uses: actions/download-artifact@v4
2526
with:
26-
name: patch-file
27+
name: pinned-browsers
2728
- name: Apply Patch
2829
run: |
2930
git apply changes.patch

0 commit comments

Comments
 (0)