From 7a24aafc50111d3f6d26e8d10cd0784ca079b204 Mon Sep 17 00:00:00 2001 From: cpanato Date: Mon, 6 Mar 2023 13:38:33 +0100 Subject: [PATCH] add new required input paramenter Signed-off-by: cpanato --- .github/workflows/release.yaml | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index f68ec2695..242f0cd6f 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -16,6 +16,7 @@ jobs: release: outputs: hashes: ${{ steps.hash.outputs.hashes }} + tag_name: ${{ steps.tag.outputs.tag_name }} runs-on: ubuntu-latest steps: - uses: actions/checkout@ac593985615ec2ede58e132d2e21d2b1cbd6127c # v3.3.0 @@ -29,7 +30,7 @@ jobs: - uses: anchore/sbom-action/download-syft@07978da4bdb4faa726e52dfc6b1bed63d4b56479 # v0.13.3 - - uses: imjasonh/setup-ko@ace48d793556083a76f1e3e6068850c1f4a369aa # v0.6 + - uses: ko-build/setup-ko@ace48d793556083a76f1e3e6068850c1f4a369aa # v0.6 - name: Set up Cloud SDK uses: google-github-actions/auth@ef5d53e30bbcd8d0836f4288f5e50ff3e086997d # v1.0.0 @@ -50,6 +51,10 @@ jobs: goflags=$(ldflags) echo "GO_FLAGS="${goflags}"" >> "$GITHUB_ENV" + - name: Set tag output + id: tag + run: echo "tag_name=${GITHUB_REF#refs/*/}" >> "$GITHUB_OUTPUT" + - name: Run GoReleaser id: run-goreleaser uses: goreleaser/goreleaser-action@f82d6c1c344bcacabba2c841718984797f664a6b # v4.2.0 @@ -84,3 +89,4 @@ jobs: with: base64-subjects: "${{ needs.release.outputs.hashes }}" upload-assets: true # upload to a new release + upload-tag-name: "${{ needs.release.outputs.tag_name }}"