Skip to content

Commit 9e50153

Browse files
committed
cicd: Fix cicd pipelines
1 parent 8ee4fdf commit 9e50153

4 files changed

Lines changed: 15 additions & 12 deletions

File tree

.github/workflows/auto-assign.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff 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-

.github/workflows/delete-branch.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ on:
77
jobs:
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

.github/workflows/release.yml

Lines changed: 9 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@ on:
44
workflow_run:
55
workflows: [CI]
66
branches: [main]
7-
# types:
8-
# - completed
7+
types:
8+
- completed
99

1010
concurrency:
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 }}

.goreleaser.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
builds:
2+
- skip: true
3+

0 commit comments

Comments
 (0)