chore(ci): Replace deprecated command with environment file (#234)

This commit is contained in:
Jongwoo Han 2023-02-07 08:11:30 +09:00 committed by GitHub
parent 15ceb832a3
commit 63950db683
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 10 additions and 5 deletions

View File

@ -23,7 +23,8 @@ jobs:
- name: Get the Yarn cache directory path
id: yarn-cache-dir-path
run: echo "::set-output name=dir::$(corepack yarn config get cacheFolder)"
run: echo "dir=$(corepack yarn config get cacheFolder)" >> $GITHUB_OUTPUT
shell: bash
- uses: actions/cache@v3
with:
@ -66,7 +67,8 @@ jobs:
- name: Get the Yarn cache directory path
id: yarn-cache-dir-path
run: echo "::set-output name=dir::$(corepack yarn config get cacheFolder)"
run: echo "dir=$(corepack yarn config get cacheFolder)" >> $GITHUB_OUTPUT
shell: bash
- uses: actions/cache@v3
with:

View File

@ -33,7 +33,8 @@ jobs:
- name: Get the Yarn cache directory path
id: yarn-cache-dir-path
run: echo "::set-output name=dir::$(corepack yarn config get cacheFolder)"
run: echo "dir=$(corepack yarn config get cacheFolder)" >> $GITHUB_OUTPUT
shell: bash
- uses: actions/cache@v3
with:

View File

@ -29,7 +29,8 @@ jobs:
- name: Get the Yarn cache directory path
id: yarn-cache-dir-path
run: echo "::set-output name=dir::$(corepack yarn config get cacheFolder)"
run: echo "dir=$(corepack yarn config get cacheFolder)" >> $GITHUB_OUTPUT
shell: bash
- uses: actions/cache@v3
with:
@ -50,7 +51,8 @@ jobs:
- name: Check if anything has changed
id: contains-changes
run: echo "::set-output name=result::$(git --no-pager diff --quiet -- tests/nock || echo "yes")"
run: echo "result=$(git --no-pager diff --quiet -- tests/nock || echo "yes")" >> $GITHUB_OUTPUT
shell: bash
- name: Commit changes
if: ${{ steps.contains-changes.outputs.result == 'yes' }}