Skip to content

Commit fabc134

Browse files
committed
update build.yml
Signed-off-by: Ayush <mail@ayuch.dev>
1 parent 43cd9f1 commit fabc134

1 file changed

Lines changed: 8 additions & 9 deletions

File tree

.github/workflows/build.yml

Lines changed: 8 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,26 +1,25 @@
11
name: build
22

3-
# This workflow runs if the CI workflow is successful
3+
# This workflow is triggered only after the "CI" workflow completes
44
on:
55
workflow_run:
6-
workflows: ["CI"] # Keep consistent with actual CI workflow name
7-
types:
6+
workflows: ["CI"] # The name of the workflow from CI.yml
7+
types:
88
- completed
9-
branches: [master]
10-
workflow_dispatch:
119

1210
jobs:
1311
build:
14-
if: ${{ github.event.workflow_run.conclusion == 'success' || github.event_name == 'workflow_dispatch' }}
1512
runs-on: ubuntu-latest
13+
if: github.event.workflow_run.conclusion == 'success'
14+
1615
steps:
1716
- name: Checkout code
18-
uses: actions/checkout@v2
17+
uses: actions/checkout@v4
1918

2019
- name: Set up Go
21-
uses: actions/setup-go@v2
20+
uses: actions/setup-go@v4
2221
with:
23-
go-version: 1.24
22+
go-version: '1.24'
2423

2524
- name: Build
2625
run: make build

0 commit comments

Comments
 (0)