Skip to content

Commit 6d94e95

Browse files
committed
build: convert ::set-output to $GITHUB_OUTPUT
Signed-off-by: Hidde Beydals <[email protected]>
1 parent 5e24a37 commit 6d94e95

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

.github/workflows/release.yaml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ jobs:
3131
if [[ $GITHUB_REF == refs/tags/* ]]; then
3232
VERSION=${GITHUB_REF/refs\/tags\//}
3333
fi
34-
echo ::set-output name=VERSION::${VERSION}
34+
echo "version=${VERSION}" >> $GITHUB_OUTPUT
3535
- uses: actions/setup-go@v2
3636
with:
3737
go-version: 1.19.x
@@ -65,7 +65,7 @@ jobs:
6565
fluxcd/${{ env.CONTROLLER }}
6666
ghcr.io/fluxcd/${{ env.CONTROLLER }}
6767
tags: |
68-
type=raw,value=${{ steps.prep.outputs.VERSION }}
68+
type=raw,value=${{ steps.prep.outputs.version }}
6969
- name: Docker push
7070
uses: docker/build-push-action@v2
7171
with:
@@ -80,8 +80,8 @@ jobs:
8080
env:
8181
COSIGN_EXPERIMENTAL: 1
8282
run: |
83-
cosign sign fluxcd/${{ env.CONTROLLER }}:${{ steps.prep.outputs.VERSION }}
84-
cosign sign ghcr.io/fluxcd/${{ env.CONTROLLER }}:${{ steps.prep.outputs.VERSION }}
83+
cosign sign fluxcd/${{ env.CONTROLLER }}:${{ steps.prep.outputs.version }}
84+
cosign sign ghcr.io/fluxcd/${{ env.CONTROLLER }}:${{ steps.prep.outputs.version }}
8585
- name: GoReleaser publish signed SBOM
8686
if: startsWith(github.ref, 'refs/tags/v')
8787
uses: goreleaser/goreleaser-action@v3

0 commit comments

Comments
 (0)