Skip to content

Commit

Permalink
Better build step condition (#344)
Browse files Browse the repository at this point in the history
  • Loading branch information
nicksnyder authored Oct 13, 2024
1 parent 63bab5c commit 89b95c0
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -1,12 +1,14 @@
name: Build
on:
- push
- pull_request
push:
branches:
- main
pull_request:

jobs:
build:
name: Build
runs-on: ubuntu-latest
if: (github.event_name == 'push' && github.ref == 'refs/heads/main') || github.event_name == 'pull_request'
steps:
- name: Install Go
uses: actions/setup-go@v5
Expand Down

0 comments on commit 89b95c0

Please sign in to comment.