Skip to content

Commit

Permalink
use newer env var api
Browse files Browse the repository at this point in the history
  • Loading branch information
shamilovtim committed Dec 2, 2023
1 parent 1892136 commit 8471e0c
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions .github/workflows/tests-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -102,15 +102,16 @@ jobs:
- name: Get Playwright Version (for cache)
id: get-playwright-version
run: |
version=$(npm view @playwright/test version)
echo "::set-output name=playwright_version::$version"
PLAYWRIGHT_VERSION=$(npm view @playwright/test version)
echo "Playwright Version: $PLAYWRIGHT_VERSION"
echo "PLAYWRIGHT_VERSION=$PLAYWRIGHT_VERSION" >> $GITHUB_ENV
- name: Restore Cached Playwright Browsers
id: cache-playwright-restore
uses: actions/cache/restore@v3
with:
path: ~/Library/Caches/ms-playwright
key: ${{ runner.os }}-playwright-${{ steps.get-playwright-version.outputs.playwright_version }}
key: ${{ runner.os }}-playwright-${{ env.PLAYWRIGHT_VERSION }}

- name: Install Playwright Browsers (if no cache)
if: steps.cache-playwright-browsers.outputs.cache-hit != 'true'
Expand All @@ -121,7 +122,7 @@ jobs:
id: cache
with:
path: ~/Library/Caches/ms-playwright
key: ${{ runner.os }}-playwright-${{ steps.get-playwright-version.outputs.playwright_version }}
key: ${{ runner.os }}-playwright-${{ env.PLAYWRIGHT_VERSION }}

- name: Build all workspace packages
run: npm run build
Expand Down

0 comments on commit 8471e0c

Please sign in to comment.