From 63950db683262db8cf8753114ca04260df30135f Mon Sep 17 00:00:00 2001 From: Jongwoo Han Date: Tue, 7 Feb 2023 08:11:30 +0900 Subject: [PATCH] chore(ci): Replace deprecated command with environment file (#234) --- .github/workflows/ci.yml | 6 ++++-- .github/workflows/publish.yml | 3 ++- .github/workflows/update-nock-files.yml | 6 ++++-- 3 files changed, 10 insertions(+), 5 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 3652a9a..333746f 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -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: diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index f2e9155..974863e 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -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: diff --git a/.github/workflows/update-nock-files.yml b/.github/workflows/update-nock-files.yml index 8cac534..22c1a55 100644 --- a/.github/workflows/update-nock-files.yml +++ b/.github/workflows/update-nock-files.yml @@ -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' }}