Skip to content

Commit b150b17

Browse files
committed
Update artifact upload condition and file extension in CI
Restrict video artifact uploads to Ubuntu runners on failure and change the file extension from `.mp4` to `.avi`. This ensures better alignment with the expected platform outputs and maintains consistency in artifact storage.
1 parent c58f401 commit b150b17

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

.github/workflows/gradle.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -59,12 +59,12 @@ jobs:
5959
run: ./gradlew test
6060

6161
- name: Capture Test Artifacts on Failure
62-
if: failure()
62+
if: failure() && matrix.os == 'ubuntu-latest'
6363
run: |
6464
mkdir -p artifacts/videos
6565
latest_file=$(ls -Art video | tail -n 1)
6666
if [ -n "$latest_file" ]; then
67-
cp "video/$latest_file" "artifacts/videos/latest-test-video.mp4"
67+
cp "video/$latest_file" "artifacts/videos/latest-test-video.avi"
6868
fi
6969
shell: bash
7070

0 commit comments

Comments
 (0)