Skip to content

Commit 59a8024

Browse files
universal increment of patch
1 parent 958f0b8 commit 59a8024

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

.github/tag.sh

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
#!/bin/bash
2-
next_version=v0.0.$(git tag --sort=-v:refname | head -n 1 | sed 's|.*\.||' | awk '{print $1 + 1}')
2+
prefix_version=$(git tag --sort=-v:refname | head -n 1 | sed 's/[^.]*$//')
3+
next_version=$prefix_version$(git tag --sort=-v:refname | head -n 1 | sed 's|.*\.||' | awk '{print $1 + 1}')
34
git tag $next_version
45
git push origin tag $next_version
56
gh release create $next_version

.github/workflows/go.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,11 @@ jobs:
3131

3232
- name: Test
3333
run: go test -v ./test/...
34+
35+
- name: golangci-lint
36+
uses: golangci/golangci-lint-action@v6
37+
with:
38+
version: v1.64
3439

3540
- name: Add tag & Release
3641
if: github.ref == 'refs/heads/main'

0 commit comments

Comments
 (0)