From 41dc1a94c3c1687352736a5cd1ddab45b932583f Mon Sep 17 00:00:00 2001 From: Mike Hardy Date: Fri, 26 Jan 2024 14:44:13 -0500 Subject: [PATCH] chore(ci): forward-port from set-output to GITHUB_OUTPUT --- .github/workflows/ci.yml | 24 ++++++++++++------------ .github/workflows/release.yml | 8 ++++---- 2 files changed, 16 insertions(+), 16 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 7057aaa..3f25ada 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -18,12 +18,12 @@ jobs: retry_wait_seconds: 30 max_attempts: 3 command: npm install -g yarn - - name: Get yarn cache - id: yarn-cache - run: echo "::set-output name=dir::$(yarn cache dir)" + - name: Get yarn cache directory path + id: yarn-cache-dir-path + run: echo "yarn-cache-dir=$(yarn cache dir)" >> $GITHUB_OUTPUT - uses: actions/cache@v4 with: - path: ${{ steps.yarn-cache.outputs.dir }} + path: ${{ steps.yarn-cache-dir-path.outputs.yarn-cache-dir }} key: ${{ runner.os }}-yarn-v1-${{ hashFiles('yarn.lock') }} restore-keys: | ${{ runner.os }}-yarn-v1- @@ -51,12 +51,12 @@ jobs: retry_wait_seconds: 30 max_attempts: 3 command: npm install -g yarn - - name: Get yarn cache - id: yarn-cache - run: echo "::set-output name=dir::$(yarn cache dir)" + - name: Get yarn cache directory path + id: yarn-cache-dir-path + run: echo "yarn-cache-dir=$(yarn cache dir)" >> $GITHUB_OUTPUT - uses: actions/cache@v4 with: - path: ${{ steps.yarn-cache.outputs.dir }} + path: ${{ steps.yarn-cache-dir-path.outputs.yarn-cache-dir }} key: ${{ runner.os }}-yarn-v1-${{ hashFiles('yarn.lock') }} restore-keys: | ${{ runner.os }}-yarn-v1- @@ -102,12 +102,12 @@ jobs: with: key: ${{ runner.os }}-v1 # makes a unique key w/related restore key internally max-size: 750M - - name: Get yarn cache - id: yarn-cache - run: echo "::set-output name=dir::$(yarn cache dir)" + - name: Get yarn cache directory path + id: yarn-cache-dir-path + run: echo "yarn-cache-dir=$(yarn cache dir)" >> $GITHUB_OUTPUT - uses: actions/cache@v4 with: - path: ${{ steps.yarn-cache.outputs.dir }} + path: ${{ steps.yarn-cache-dir-path.outputs.yarn-cache-dir }} key: ${{ runner.os }}-yarn-v1-${{ hashFiles('yarn.lock') }} restore-keys: | ${{ runner.os }}-yarn-v1 diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index cfb5724..336a3ac 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -15,12 +15,12 @@ jobs: node-version: 20 - name: Install yarn run: npm install -g yarn - - name: Get yarn cache - id: yarn-cache - run: echo "::set-output name=dir::$(yarn cache dir)" + - name: Get yarn cache directory path + id: yarn-cache-dir-path + run: echo "yarn-cache-dir=$(yarn cache dir)" >> $GITHUB_OUTPUT - uses: actions/cache@v4 with: - path: ${{ steps.yarn-cache.outputs.dir }} + path: ${{ steps.yarn-cache-dir-path.outputs.yarn-cache-dir }} key: ${{ runner.os }}-yarn-v1-${{ hashFiles('yarn.lock') }} restore-keys: | ${{ runner.os }}-yarn-v1-