From 18e0cafc43c80381761fe83f1218d8cc6e4e1dfd Mon Sep 17 00:00:00 2001 From: Kyle Carberry Date: Thu, 30 Mar 2023 14:09:58 +0000 Subject: [PATCH] chore: move away from `set-output` in GitHub Actions This is deprecated! See: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/ --- .github/workflows/ci.yaml | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index 33cb0ee4e2b53..cc8043204835b 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -254,14 +254,11 @@ jobs: with: go-version: "~1.20" - # Sadly the new "set output" syntax (of writing env vars to - # $GITHUB_OUTPUT) does not work on both powershell and bash so we use the - # deprecated syntax here. - name: Echo Go Cache Paths id: go-cache-paths run: | - echo "::set-output name=GOCACHE::$(go env GOCACHE)" - echo "::set-output name=GOMODCACHE::$(go env GOMODCACHE)" + echo "GOCACHE=$(go env GOCACHE)" >> ${{ runner.os == 'Windows' && '$env:' || '$' }}GITHUB_OUTPUT + echo "GOMODCACHE=$(go env GOMODCACHE)" >> ${{ runner.os == 'Windows' && '$env:' || '$' }}GITHUB_OUTPUT - name: Go Build Cache uses: actions/cache@v3