Skip to content

Commit

Permalink
Fix workflow condition (#249)
Browse files Browse the repository at this point in the history
  • Loading branch information
nicksnyder authored Mar 4, 2021
1 parent c587b0d commit 5d2ec5f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ jobs:
build:
name: Build
runs-on: ubuntu-latest
if: (github.event_name == 'push' && github.repository_owner == 'nicksnyder') || (github.event_name == 'pull_request' && github.repository_owner != 'nicksnyder')
if: (github.event_name == 'push' && github.ref == 'refs/heads/main') || github.event_name == 'pull_request'
steps:
- name: Install Go
uses: actions/setup-go@v2
Expand All @@ -28,7 +28,7 @@ jobs:
build_1_9_7:
name: Build with Go 1.9.7
runs-on: ubuntu-latest
if: (github.event_name == 'push' && github.repository_owner == 'nicksnyder') || (github.event_name == 'pull_request' && github.repository_owner != 'nicksnyder')
if: (github.event_name == 'push' && github.ref == 'refs/heads/main') || github.event_name == 'pull_request'
steps:
- name: Install Go
uses: actions/setup-go@v2
Expand Down

0 comments on commit 5d2ec5f

Please sign in to comment.