Don't run the nightly build and push job in forked repositories (#2330)
This commit is contained in:
parent
551b6c9056
commit
0ddb5e7b61
|
|
@ -8,6 +8,8 @@ on:
|
||||||
jobs:
|
jobs:
|
||||||
build:
|
build:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
# only run this build in the main repository, not in forks
|
||||||
|
if: github.repository == 'oauth2-proxy/oauth2-proxy'
|
||||||
steps:
|
steps:
|
||||||
- name: Check out code
|
- name: Check out code
|
||||||
uses: actions/checkout@v3
|
uses: actions/checkout@v3
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue