Skip to content

Commit 5e16c4a

Browse files
authored
Bump actions/upload-artifact to v4 (#54)
* Bump actions/upload-artifact to v4 * Fix artifact name * fix syntax error
1 parent 34a53d9 commit 5e16c4a

File tree

1 file changed

+9
-2
lines changed

1 file changed

+9
-2
lines changed

.github/workflows/test.yml

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,8 +50,15 @@ jobs:
5050
env:
5151
RUBY_VERSION: ${{ matrix.ruby-image }}
5252
run: bin/dev --image=${{ matrix.ruby-image }} --frameworks=${{ matrix.framework }}
53-
- uses: actions/upload-artifact@v3
53+
- name: prepare artifact name # because it cannot have colons ":"
54+
id: artifact_name
55+
run: |
56+
echo "artifact_name=test-results-${RUBY_IMAGE//:/_}-${FRAMEWORK}" >> "${GITHUB_OUTPUT}"
57+
env:
58+
RUBY_IMAGE: ${{ matrix.ruby-image }}
59+
FRAMEWORK: ${{ matrix.framework }}
60+
- uses: actions/upload-artifact@v4
5461
if: success() || failure()
5562
with:
56-
name: test-results
63+
name: ${{ steps.artifact_name.outputs.artifact_name }}
5764
path: 'spec/junit-reports/**/*-junit.xml'

0 commit comments

Comments
 (0)