Skip to content

Commit 3f30415

Browse files
committed
ci: fix build output conflict, remove double-trigger on release
- go build output was 'cmd' which conflicts with the cmd/ directory; use -o /dev/null ./cmd/main.go instead - release-please.yml was dispatching release.yml manually after creating a GitHub release; release.yml already triggers on release:published so this caused double builds — remove the redundant dispatch step
1 parent 399d213 commit 3f30415

2 files changed

Lines changed: 1 addition & 16 deletions

File tree

.github/workflows/ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ jobs:
6262
go-version: ${{ env.GO_VERSION }}
6363

6464
- name: Build
65-
run: CGO_ENABLED=0 GOOS=linux GOARCH=${{ matrix.arch }} go build ./cmd/...
65+
run: CGO_ENABLED=0 GOOS=linux GOARCH=${{ matrix.arch }} go build -o /dev/null ./cmd/main.go
6666

6767
test:
6868
runs-on: ubuntu-latest

.github/workflows/release-please.yml

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -8,27 +8,12 @@ on:
88
permissions:
99
contents: write
1010
pull-requests: write
11-
actions: write
1211

1312
jobs:
1413
release-please:
1514
runs-on: ubuntu-latest
1615
steps:
1716
- uses: googleapis/release-please-action@v4
18-
id: release
1917
with:
2018
config-file: .release-please-config.json
2119
manifest-file: .release-please-manifest.json
22-
23-
- name: Trigger release build
24-
if: steps.release.outputs.release_created == 'true'
25-
uses: actions/github-script@v7
26-
with:
27-
script: |
28-
await github.rest.actions.createWorkflowDispatch({
29-
owner: context.repo.owner,
30-
repo: context.repo.repo,
31-
workflow_id: 'release.yml',
32-
ref: 'main',
33-
inputs: { tag: '${{ steps.release.outputs.tag_name }}' }
34-
})

0 commit comments

Comments
 (0)