File tree Expand file tree Collapse file tree 2 files changed +7
-2
lines changed
Expand file tree Collapse file tree 2 files changed +7
-2
lines changed Original file line number Diff line number Diff line change 44 workflow_dispatch :
55 inputs :
66 tag :
7- description : " Tag of snapshots to set as reference"
7+ description : " Tag and date of snapshots to set as reference"
88 required : true
99 type : string
1010
Original file line number Diff line number Diff line change 5151 echo "week_num=$(date -u +'%Y-%V')" | tee -a $GITHUB_OUTPUT
5252 echo "playwright_version=$(npm view @playwright/test version)" | tee -a $GITHUB_OUTPUT
5353
54+ - name : " Get current date"
55+ id : folder_name_value
56+ run : |
57+ echo "current_date=$(date +'%Y-%m-%d')" | tee -a $GITHUB_OUTPUT
58+
5459 - name : " Cache Playwright browsers"
5560 uses : actions/cache@v4
5661 id : playwright-cache
7883 - name : " Upload snapshots to S3 bucket with tag ${{ inputs.checkout_ref }}"
7984 if : failure()
8085 run : |
81- aws s3 sync --delete ./e2e/snapshot/snapshot_review/ s3://${{ env.AWS_S3_ARTEFACTS_BUCKET }}/playwright/${{ inputs.checkout_ref }}/
86+ aws s3 sync --delete ./e2e/snapshot/snapshot_review/ s3://${{ env.AWS_S3_ARTEFACTS_BUCKET }}/playwright/${{ inputs.checkout_ref }}-${{ steps.folder_name_value.outputs.current_date }} /
8287
8388 - name : " Upload report"
8489 uses : actions/upload-artifact@v4
You can’t perform that action at this time.
0 commit comments