CI: don't run on master branch on any fork.

Per discussion on discord, most use their master branch to mirror
upstream, and do not need CI to run when they sync.
This commit is contained in:
Jeremy Drake
2021-07-16 16:38:20 -07:00
parent 37222b7a63
commit dac23adcbd

View File

@@ -6,7 +6,7 @@ on:
jobs:
build:
if: ${{ github.repository != 'msys2/MINGW-packages' || github.event_name != 'push' || github.ref != 'refs/heads/master'}}
if: ${{ github.event_name != 'push' || github.ref != 'refs/heads/master'}}
runs-on: windows-latest
strategy:
fail-fast: false