Skip to content

Commit

Permalink
ci: Changed ::set-output to env variable
Browse files Browse the repository at this point in the history
  • Loading branch information
Joery-M committed Apr 22, 2024
1 parent 34bacfe commit 5b2a06e
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ jobs:
- name: Install pnpm
uses: pnpm/action-setup@v3
with:
version: 8 # Latest major
version: 8 # Last major
run_install: false

- name: Get pnpm store directory
Expand All @@ -45,15 +45,14 @@ jobs:
${{ runner.os }}-pnpm-store-
- name: Get installed Playwright version
id: playwright-version
run: echo "::set-output name=version::$(pnpm ls -r | grep playwright | sed 's/.* //')"
run: echo "PLAYWRIGHT_VERSION=$(pnpm ls -r | grep playwright | sed 's/.* //')" >> $GITHUB_ENV

- uses: actions/cache@v3
name: Setup playwright cache
id: playwright-cache
with:
path: '~/.cache/ms-playwright'
key: '${{ runner.os }}-playwright-${{ steps.playwright-version.outputs.version }}'
key: '${{ runner.os }}-playwright-${{ env.PLAYWRIGHT_VERSION }}'
restore-keys: |
${{ runner.os }}-playwright-
Expand Down

0 comments on commit 5b2a06e

Please sign in to comment.