File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -11,11 +11,12 @@ jobs:
1111 permissions :
1212 issues : write
1313 pull-requests : write
14+ contents : read
15+ id-token : write
1416 steps :
1517 - name : ' Auto-assign issue or pull request'
1618 uses : pozil/auto-assign-issue@v2.1.2
1719 with :
1820 repo-token : ${{ secrets.GITHUB_TOKEN }}
1921 assignees : ${{ github.event.pull_request.user.login || github.event.issue.user.login }}
2022 numOfAssignee : 2
21-
Original file line number Diff line number Diff line change 77jobs :
88 delete-branch :
99 runs-on : ubuntu-latest
10- if : github.event.pull_request.merged == true && github.event.pull_request.base.ref == 'main'
10+ if : github.event.pull_request.merged == true && github.event.pull_request.base.ref == 'main' && !startsWith(github.event.pull_request.head.ref, 'dev')
1111 steps :
1212 - name : Delete branch
1313 uses : SvanBoxel/delete-merged-branch@main
Original file line number Diff line number Diff line change 44 workflow_run :
55 workflows : [CI]
66 branches : [main]
7- # types:
8- # - completed
7+ types :
8+ - completed
99
1010concurrency :
1111 group : release-${{ github.ref }}
@@ -30,13 +30,12 @@ jobs:
3030 with :
3131 go-version : ' 1.22.4'
3232 cache : true
33- - name : Install GoReleaser
34- run : |
35- curl -sfL https://install.goreleaser.com/github.com/goreleaser/goreleaser | sh
36- echo $PATH
37- export PATH=$PATH:/go/bin
38- - name : Run GoReleaser
39- run : |
40- goreleaser release --config .github/.goreleaser.yaml --release-notes CHANGELOG.md --allow-initial-development-versions --release-notes-mode prepend
33+ - name : Create Release
34+ uses : go-semantic-release/action@v1
35+ with :
36+ hooks : goreleaser
37+ changelog-file : CHANGELOG.md
38+ allow-initial-development-versions : true
39+ prepend : true
4140 env :
4241 GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
Original file line number Diff line number Diff line change 1+ builds :
2+ - skip : true
3+
You can’t perform that action at this time.
0 commit comments