Skip to content

Commit

Permalink
feat: add PLAYWRIGHT_BLOB_ARTIFACTS_KEY unique key id (#288)
Browse files Browse the repository at this point in the history
  • Loading branch information
splincode authored Nov 20, 2024
1 parent 2aefbf4 commit 7bbdfe6
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions actions/setup/variables/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -49,9 +49,9 @@ runs:
export CACHE_DIST_KEY="dist-${{ github.head_ref }}-${{ github.ref }}-${{ github.sha }}"
export IS_FORK="${{ github.event.pull_request.head.repo.full_name != github.repository }}"
export IS_DEPENDABOT="${{ github.actor == 'dependabot[bot]' || github.actor == 'dependabot-preview[bot]' }}"
export SNAPSHOTS_CACHE_KEY="e2e-cache--${{ github.event.pull_request.head.sha || github.sha }}-${{ github.event.number }}"
export CYPRESS_SNAPSHOTS_ARTIFACTS_KEY="cypress-e2e-artifacts--${{ github.event.pull_request.head.sha || github.sha }}-${{ github.run_id }}-${{ github.event.number }}"
export PLAYWRIGHT_SNAPSHOTS_ARTIFACTS_KEY="playwright-e2e-artifacts--${{ github.event.pull_request.head.sha || github.sha }}-${{ github.run_id }}-${{ github.event.number }}"
export CYPRESS_SNAPSHOTS_ARTIFACTS_KEY="cypress-snapshots-artifacts--${{ github.event.pull_request.head.sha || github.sha }}-${{ github.run_id }}-${{ github.event.number }}-${{ runner.os }}"
export PLAYWRIGHT_SNAPSHOTS_ARTIFACTS_KEY="playwright-snapshots-artifacts--${{ github.event.pull_request.head.sha || github.sha }}-${{ github.run_id }}-${{ github.event.number }}-${{ runner.os }}"
export PLAYWRIGHT_BLOB_ARTIFACTS_KEY="playwright-blob-artifacts--${{ github.event.pull_request.head.sha || github.sha }}-${{ github.run_id }}-${{ github.event.number }}-${{ runner.os }}"
if [[ "$IS_FORK" == "false" && "$IS_DEPENDABOT" == "false" ]]; then
export IS_OWNER_MODE="true"
Expand Down Expand Up @@ -89,4 +89,4 @@ runs:
echo "SUPPORT_AUTO_PUSH=$SUPPORT_AUTO_PUSH" >> $GITHUB_ENV
echo "CYPRESS_SNAPSHOTS_ARTIFACTS_KEY=$CYPRESS_SNAPSHOTS_ARTIFACTS_KEY" >> $GITHUB_ENV
echo "PLAYWRIGHT_SNAPSHOTS_ARTIFACTS_KEY=$PLAYWRIGHT_SNAPSHOTS_ARTIFACTS_KEY" >> $GITHUB_ENV
echo "SNAPSHOTS_CACHE_KEY=$SNAPSHOTS_CACHE_KEY" >> $GITHUB_ENV
echo "PLAYWRIGHT_BLOB_ARTIFACTS_KEY=$PLAYWRIGHT_BLOB_ARTIFACTS_KEY" >> $GITHUB_ENV

0 comments on commit 7bbdfe6

Please sign in to comment.