From 7c81a85fe6aed0ae2e36a8de09fb4e7b06cbd698 Mon Sep 17 00:00:00 2001 From: Sergey Morgunov Date: Thu, 13 Oct 2022 13:03:51 +0300 Subject: [PATCH] #45 Use environment file instead `set-output` --- .github/workflows/antora.yml | 2 +- .github/workflows/cmd.yml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/antora.yml b/.github/workflows/antora.yml index efcdcad..700ee16 100644 --- a/.github/workflows/antora.yml +++ b/.github/workflows/antora.yml @@ -43,7 +43,7 @@ jobs: - name: Get npm cache directory id: npm-cache-dir run: | - echo "::set-output name=dir::$(npm config get cache)" + echo "dir=$(npm config get cache)" >> $GITHUB_OUTPUT - uses: actions/cache@v3 id: npm-cache # use this to check for `cache-hit` ==> if: steps.npm-cache.outputs.cache-hit != 'true' with: diff --git a/.github/workflows/cmd.yml b/.github/workflows/cmd.yml index 5b00cd9..ed6ff17 100644 --- a/.github/workflows/cmd.yml +++ b/.github/workflows/cmd.yml @@ -72,7 +72,7 @@ jobs: matrix+="\"exclude\":$(echo -n '${{ inputs.exclude }}')" matrix+="}" echo $matrix - echo ::set-output name=matrix::$(echo $matrix) + echo "matrix=$matrix" >> $GITHUB_OUTPUT cmd: name: ${{ toJSON(matrix) }} if: ${{ github.event.repository.fork == false || github.event_name != 'schedule' || (github.event_name == 'schedule' && github.event.repository.fork == true && inputs.run-scheduled-in-forks == true) }}