ci: Use GITHUB_OUTPUT envvar instead of set-output command #1404
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: test-repoutils.yml | |
on: | |
workflow_dispatch: | |
push: | |
branches: | |
- main | |
- '4.12' | |
- '4.13' | |
pull_request: | |
branches: | |
- main | |
- '4.12' | |
- '4.13' | |
jobs: | |
ci: | |
name: test:repoutils | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- name: use node 16.x | |
uses: actions/setup-node@v2-beta | |
with: | |
node-version: 16.x | |
- name: yarn cache dir | |
id: yarn-cache-dir | |
run: echo "dir=$(yarn cache dir)" >> $GITHUB_OUTPUT | |
- uses: actions/cache@v2 | |
with: | |
path: ${{ steps.yarn-cache-dir.outputs.dir }} | |
key: ${{ runner.os }}-node16.x-yarn-${{ hashFiles('**/yarn.lock') }} | |
- name: yarn | |
run: yarn --frozen-lockfile | |
- name: yarn test:repoutils | |
run: yarn test:repoutils |