File tree Expand file tree Collapse file tree 3 files changed +15
-4
lines changed
Expand file tree Collapse file tree 3 files changed +15
-4
lines changed Original file line number Diff line number Diff line change 1- name : golangci-lint
1+ name : GolangCI
2+
23on :
34 push :
45 branches :
56 - main
6- - master
77 pull_request :
88
99permissions :
1010 contents : read
1111 pull-requests : read
1212
1313jobs :
14- golangci :
15- name : lint
14+ lint :
15+ name : GolangCI - Lint
1616 runs-on : ubuntu-latest
1717 steps :
1818 - uses : actions/checkout@v4
Original file line number Diff line number Diff line change @@ -37,3 +37,4 @@ http-fmt:
3737
3838bump :
3939 pnpm bump
40+
Original file line number Diff line number Diff line change 1+ if ! git diff-index --quiet HEAD -- || [ -n " $( git ls-files --others --exclude-standard) " ]; then
2+ echo " Working directory is not clean. Commit or stash your changes first."
3+ exit 2
4+ else
5+ echo " Working directory is clean."
6+ fi
7+
8+
19node cli/semver.mjs
210
311VERSION=$( node -p " require('./package.json').version" )
@@ -8,3 +16,5 @@ git add package.json
816git commit -m " chore(ci): bump version v$VERSION "
917
1018git push origin " v$VERSION "
19+
20+ exit 0
You can’t perform that action at this time.
0 commit comments