From 8d2d51f33d6c9672e2ac2fe33bf205c2026fe04a Mon Sep 17 00:00:00 2001 From: Ramon Quitales Date: Tue, 19 Sep 2023 11:55:09 -0700 Subject: [PATCH] Use semver tag for goreleaser master builds (#496) This fixes the build failures caused when the last tag fetched is for the Helm chart, and is in the format `pulumi-kubernetes-operator-[0-9].[0-9].[0-9]` instead of a semver tag. Example failed run: https://github.com/pulumi/pulumi-kubernetes-operator/actions/runs/6201701807 This PR added and removed this branch as well to trigger this workflow to ensure that this fix works as expected before being merged. Validation run: https://github.com/pulumi/pulumi-kubernetes-operator/actions/runs/6238681684/job/16935042636 --- .github/workflows/master.yaml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/.github/workflows/master.yaml b/.github/workflows/master.yaml index be5a810d..8170cfb7 100644 --- a/.github/workflows/master.yaml +++ b/.github/workflows/master.yaml @@ -24,6 +24,11 @@ jobs: uses: actions/setup-go@v2 with: go-version: 1.19.x + # Get the last semver tag and use it as the version for the release. This is required as we release both Helm charts and the operator + # within this repository. + - name: Get last semver tag + id: semver + run: echo "GORELEASER_CURRENT_TAG=$(git describe --tags --match "v*" --abbrev=0)" >> $GITHUB_ENV - name: GoReleaser uses: goreleaser/goreleaser-action@v2 with: