Skip to content

Commit 0322fbf

Browse files
committed
chore: Use actions/upload-artifact@v4 in workflows
1 parent 1055d7b commit 0322fbf

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

.github/workflows/visual-regression.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -30,16 +30,16 @@ jobs:
3030
run: |
3131
RUN_ID=`gh run --repo $GITHUB_REPOSITORY --branch main list --workflow "Visual Regressions" --json databaseId --jq .[0].databaseId`
3232
echo "Downloading snapshots created in run ${RUN_ID}"
33-
gh run --repo $GITHUB_REPOSITORY download ${RUN_ID} -n "visual-regression-snapshots" -D ${{ env.VISUAL_REGRESSION_SNAPSHOT_DIRECTORY }}
33+
gh run --repo $GITHUB_REPOSITORY download ${RUN_ID} -p "visual-regression-snapshots-*" -D ${{ env.VISUAL_REGRESSION_SNAPSHOT_DIRECTORY }}
3434
env:
3535
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
3636
- run: npm install
3737
- run: npm run build
3838
- run: npm run test:visual
39-
- uses: actions/upload-artifact@v3
39+
- uses: actions/upload-artifact@v4
4040
if: always()
4141
with:
42-
name: visual-regression-snapshots-results
42+
name: visual-regression-snapshots-results-${{ github.sha }}
4343
path: ${{ env.VISUAL_REGRESSION_SNAPSHOT_DIRECTORY }}
4444
update:
4545
name: Update Snapshots
@@ -54,7 +54,7 @@ jobs:
5454
- run: npm install
5555
- run: npm run build
5656
- run: npm run test:visual:update
57-
- uses: actions/upload-artifact@v3
57+
- uses: actions/upload-artifact@v4
5858
with:
59-
name: visual-regression-snapshots
59+
name: visual-regression-snapshots-${{ github.sha }}
6060
path: ${{ env.VISUAL_REGRESSION_SNAPSHOT_DIRECTORY }}

0 commit comments

Comments
 (0)