Skip to content

Commit

Permalink
chore: Use actions/upload-artifact@v4 in workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
avinashbot committed Feb 3, 2025
1 parent 1055d7b commit 0322fbf
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions .github/workflows/visual-regression.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,16 +30,16 @@ jobs:
run: |
RUN_ID=`gh run --repo $GITHUB_REPOSITORY --branch main list --workflow "Visual Regressions" --json databaseId --jq .[0].databaseId`
echo "Downloading snapshots created in run ${RUN_ID}"
gh run --repo $GITHUB_REPOSITORY download ${RUN_ID} -n "visual-regression-snapshots" -D ${{ env.VISUAL_REGRESSION_SNAPSHOT_DIRECTORY }}
gh run --repo $GITHUB_REPOSITORY download ${RUN_ID} -p "visual-regression-snapshots-*" -D ${{ env.VISUAL_REGRESSION_SNAPSHOT_DIRECTORY }}
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- run: npm install
- run: npm run build
- run: npm run test:visual
- uses: actions/upload-artifact@v3
- uses: actions/upload-artifact@v4
if: always()
with:
name: visual-regression-snapshots-results
name: visual-regression-snapshots-results-${{ github.sha }}
path: ${{ env.VISUAL_REGRESSION_SNAPSHOT_DIRECTORY }}
update:
name: Update Snapshots
Expand All @@ -54,7 +54,7 @@ jobs:
- run: npm install
- run: npm run build
- run: npm run test:visual:update
- uses: actions/upload-artifact@v3
- uses: actions/upload-artifact@v4
with:
name: visual-regression-snapshots
name: visual-regression-snapshots-${{ github.sha }}
path: ${{ env.VISUAL_REGRESSION_SNAPSHOT_DIRECTORY }}

0 comments on commit 0322fbf

Please sign in to comment.