Skip to content

Commit

Permalink
Use semver tag for goreleaser master builds (#496)
Browse files Browse the repository at this point in the history
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
  • Loading branch information
rquitales authored Sep 19, 2023
1 parent 9ace0af commit 8d2d51f
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .github/workflows/master.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 8d2d51f

Please sign in to comment.