Skip to content

Commit

Permalink
Add playwright version echo fix to cron
Browse files Browse the repository at this point in the history
  • Loading branch information
rafeerahman committed Jun 6, 2024
1 parent 331fe6d commit adbb211
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
7 changes: 3 additions & 4 deletions .github/workflows/e2e_cron.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,10 +29,9 @@ jobs:
run: cp .env-dist .env
- name: Store Playwright's Version
run: |
# The regular expression matches everything containing
# `<number>.<number>.<number>`, and returns only that bit:
PLAYWRIGHT_VERSION=$(npm ls @playwright/test | grep @playwright | sed --regexp-extended 's/.*([0-9]+\.[0-9]+\.[0-9]+).*/\1/') | head -1
echo "Playwright's Version: $PLAYWRIGHT_VERSION"
# Get the current Playwright version listed in package.json
PLAYWRIGHT_VERSION=$(npx playwright --version | sed 's/Version //')
echo "Playwright Version: $PLAYWRIGHT_VERSION"
echo "PLAYWRIGHT_VERSION=$PLAYWRIGHT_VERSION" >> $GITHUB_ENV
- name: Cache Playwright Browsers for Playwright's Version
Expand Down
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -70,3 +70,5 @@ next-env.d.ts
# Glean
.venv
/src/telemetry/generated/

traces

0 comments on commit adbb211

Please sign in to comment.