Don't run the nightly build and push job in forked repositories (#2330)

This commit is contained in:
Ian Roberts 2023-11-21 11:54:12 +00:00 committed by GitHub
parent 551b6c9056
commit 0ddb5e7b61
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 0 deletions

View File

@ -8,6 +8,8 @@ on:
jobs:
build:
runs-on: ubuntu-latest
# only run this build in the main repository, not in forks
if: github.repository == 'oauth2-proxy/oauth2-proxy'
steps:
- name: Check out code
uses: actions/checkout@v3