From d02670614452f20c35640d924e0c7289f4ab7bc6 Mon Sep 17 00:00:00 2001 From: Adriano Caloiaro Date: Sun, 22 Dec 2024 08:22:45 -0700 Subject: [PATCH] chore: fix svu install in github action --- .github/workflows/goreleaser.yml | 16 ++-------------- 1 file changed, 2 insertions(+), 14 deletions(-) diff --git a/.github/workflows/goreleaser.yml b/.github/workflows/goreleaser.yml index fc062fb..1e091dc 100644 --- a/.github/workflows/goreleaser.yml +++ b/.github/workflows/goreleaser.yml @@ -17,21 +17,9 @@ jobs: with: fetch-depth: 0 - name: Set up Go - uses: actions/setup-go@v3 + uses: actions/setup-go@v5 - name: Bump version and push tag - shell: bash - run: | - git config --global user.email "actions@github.com" - git config --global user.name "Github Actions" - go install github.com/caarlos0/svu@latest - OLD_TAG=$(svu current --strip-prefix) - NEW_TAG=$(svu next --strip-prefix) - [ "$OLD_TAG" == "$NEW_TAG" ] && echo "no version bump" && exit 0 - git commit -m "bump release version" --allow-empty - git tag v$NEW_TAG - git tag $NEW_TAG - git push - git push --tags + uses: charlesthomas/github-action-svu@v1.0.6+2.2.0 - name: Run GoReleaser uses: goreleaser/goreleaser-action@v4 with: