Skip to content

Commit

Permalink
Fix GitHub Actions upload artefact v4 usage
Browse files Browse the repository at this point in the history
  • Loading branch information
ifox authored Oct 14, 2024
1 parent ff88b20 commit 985fe37
Showing 1 changed file with 14 additions and 3 deletions.
17 changes: 14 additions & 3 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -190,10 +190,21 @@ jobs:
with:
files: .github/clover.xml

- uses: actions/upload-artifact@v4
if: always()
- name: Replace asterisks in Laravel
run: echo "REPLACED_LARAVEL=${MATRIX_LARAVEL//\*/_}" >> $GITHUB_ENV
env:
MATRIX_LARAVEL: ${{ matrix.laravel }}

- name: Replace asterisks in DBAL
id: replace_dbal
run: echo "REPLACED_DBAL=${MATRIX_DBAL//\*/_}" >> $GITHUB_ENV
env:
MATRIX_DBAL: ${{ matrix.dbal }}

- name: Upload artifact
uses: actions/upload-artifact@v4
with:
name: screenshots-${{ matrix.os }}-${{ matrix.php }}-${{ matrix.laravel//\*/_ }}-${{ matrix.dbal//\*/_ }}
name: screenshots-${{ matrix.os }}-${{ matrix.php }}-${{ env.REPLACED_LARAVEL }}-${{ env.REPLACED_DBAL }}
path: |
tests/Browser/screenshots/
tests/Browser/console/

0 comments on commit 985fe37

Please sign in to comment.