Don't run the nightly build and push job in forked repositories (#2330)
commit0ddb5e7b61081c65ba096d6a50f2bbe9090232e9
authorIan Roberts <i.roberts@dcs.shef.ac.uk>
dateTue 21 Nov 2023, 11:54 (3 years ago)
parent551b6c9
.github/workflows/nightly.yml+2
@@ -8,6 +8,8 @@ on:
88jobs:
99 build:
1010 runs-on: ubuntu-latest
11+ # only run this build in the main repository, not in forks
12+ if: github.repository == 'oauth2-proxy/oauth2-proxy'
1113 steps:
1214 - name: Check out code
1315 uses: actions/checkout@v3