Skip to content

Commit c58f401

Browse files
committed
Improve video artifact upload conditions in CI workflow
Restrict artifact uploads to Ubuntu runners on failure and update to `upload-artifact@v4`. Additionally, enable the `overwrite` option to ensure the latest video is consistently stored.
1 parent 89b2bbe commit c58f401

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

.github/workflows/gradle.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -69,11 +69,12 @@ jobs:
6969
shell: bash
7070

7171
- name: Upload Test Video Artifact
72-
if: failure()
73-
uses: actions/upload-artifact@v3
72+
if: failure() && matrix.os == 'ubuntu-latest'
73+
uses: actions/upload-artifact@v4
7474
with:
7575
name: latest-test-video
7676
path: artifacts/videos/latest-test-video.avi
77+
overwrite: true
7778

7879
static-tests:
7980
runs-on: ubuntu-latest

0 commit comments

Comments
 (0)