Fix workflow condition (#249)
Nick Snyder authored 3 years ago
GitHub committed 3 years ago
5 | 5 | build: |
6 | 6 | name: Build |
7 | 7 | runs-on: ubuntu-latest |
8 | if: (github.event_name == 'push' && github.repository_owner == 'nicksnyder') || (github.event_name == 'pull_request' && github.repository_owner != 'nicksnyder') | |
8 | if: (github.event_name == 'push' && github.ref == 'refs/heads/main') || github.event_name == 'pull_request' | |
9 | 9 | steps: |
10 | 10 | - name: Install Go |
11 | 11 | uses: actions/setup-go@v2 |
27 | 27 | build_1_9_7: |
28 | 28 | name: Build with Go 1.9.7 |
29 | 29 | runs-on: ubuntu-latest |
30 | if: (github.event_name == 'push' && github.repository_owner == 'nicksnyder') || (github.event_name == 'pull_request' && github.repository_owner != 'nicksnyder') | |
30 | if: (github.event_name == 'push' && github.ref == 'refs/heads/main') || github.event_name == 'pull_request' | |
31 | 31 | steps: |
32 | 32 | - name: Install Go |
33 | 33 | uses: actions/setup-go@v2 |