From fb51f446a7feffdf5a633abccb0b2a019fe04240 Mon Sep 17 00:00:00 2001 From: Gabriela Gutierrez Date: Fri, 21 Oct 2022 18:47:48 +0000 Subject: [PATCH] fix: Replace deprecated set-output with GITHUB_OUTPUT Signed-off-by: Gabriela Gutierrez --- .github/workflows/goreleaser.yaml | 4 ++-- .github/workflows/slsa-goreleaser.yml | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/goreleaser.yaml b/.github/workflows/goreleaser.yaml index 844c822c0aa..7747a2833ac 100644 --- a/.github/workflows/goreleaser.yaml +++ b/.github/workflows/goreleaser.yaml @@ -46,7 +46,7 @@ jobs: check-latest: true - name: Configure ldflags id: ldflags - run: echo "::set-output name=version_flags::$(./scripts/version-ldflags)" + run: echo "version_flags=$(./scripts/version-ldflags)" >> "$GITHUB_OUTPUT" - name: Import GPG key id: import_gpg uses: crazy-max/ghaction-import-gpg@c8bb57c57e8df1be8c73ff3d59deab1dbc00e0d1 # v3.1.0 @@ -71,7 +71,7 @@ jobs: set -euo pipefail checksum_file=$(echo "$ARTIFACTS" | jq -r '.[] | select (.type=="Checksum") | .path') - echo "::set-output name=hashes::$(cat $checksum_file | base64 -w0)" + echo "hashes=$(cat $checksum_file | base64 -w0)" >> "$GITHUB_OUTPUT" provenance: needs: [goreleaser] diff --git a/.github/workflows/slsa-goreleaser.yml b/.github/workflows/slsa-goreleaser.yml index 6d7f17eca5a..7d975dcb087 100644 --- a/.github/workflows/slsa-goreleaser.yml +++ b/.github/workflows/slsa-goreleaser.yml @@ -20,7 +20,7 @@ jobs: fetch-depth: 0 - id: ldflags run: | - echo "::set-output name=value::$(./scripts/version-ldflags)" + echo "value=$(./scripts/version-ldflags)" >> "$GITHUB_OUTPUT" # Trusted builder. build: