Skip to content

Commit e27e958

Browse files
VIA-524 AS/SB Modify name of snapshot artefact to include date
1 parent 94e6233 commit e27e958

File tree

2 files changed

+7
-2
lines changed

2 files changed

+7
-2
lines changed

.github/workflows/cicd-6-snapshot-update.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ on:
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

.github/workflows/stage-7-snapshot-test.yaml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,11 @@ jobs:
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
@@ -78,7 +83,7 @@ jobs:
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

0 commit comments

Comments
 (0)