Skip to content

Commit a002d3f

Browse files
committed
chore: fix svu install in github action
1 parent 0ef3446 commit a002d3f

File tree

1 file changed

+4
-14
lines changed

1 file changed

+4
-14
lines changed

.github/workflows/goreleaser.yml

Lines changed: 4 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -17,21 +17,11 @@ jobs:
1717
with:
1818
fetch-depth: 0
1919
- name: Set up Go
20-
uses: actions/setup-go@v3
20+
uses: actions/setup-go@v5
2121
- name: Bump version and push tag
22-
shell: bash
23-
run: |
24-
git config --global user.email "[email protected]"
25-
git config --global user.name "Github Actions"
26-
go install github.com/caarlos0/svu@latest
27-
OLD_TAG=$(svu current --strip-prefix)
28-
NEW_TAG=$(svu next --strip-prefix)
29-
[ "$OLD_TAG" == "$NEW_TAG" ] && echo "no version bump" && exit 0
30-
git commit -m "bump release version" --allow-empty
31-
git tag v$NEW_TAG
32-
git tag $NEW_TAG
33-
git push
34-
git push --tags
22+
uses: charlesthomas/[email protected]+2.2.0
23+
with:
24+
pushTag: true
3525
- name: Run GoReleaser
3626
uses: goreleaser/goreleaser-action@v4
3727
with:

0 commit comments

Comments
 (0)