Skip to content

Commit 89b95c0

Browse files
authored
Better build step condition (nicksnyder#344)
1 parent 63bab5c commit 89b95c0

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

‎.github/workflows/build.yml‎

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,14 @@
11
name: Build
22
on:
3-
- push
4-
- pull_request
3+
push:
4+
branches:
5+
- main
6+
pull_request:
7+
58
jobs:
69
build:
710
name: Build
811
runs-on: ubuntu-latest
9-
if: (github.event_name == 'push' && github.ref == 'refs/heads/main') || github.event_name == 'pull_request'
1012
steps:
1113
- name: Install Go
1214
uses: actions/setup-go@v5

0 commit comments

Comments
 (0)