Disable scheduled nightly runs on forks (#1083)
.github/workflows/nightly.yml: disable scheduled nightly runs on the forked repos User will still be able to run the workflow manually Fixes #1082 Co-authored-by: Guglielmo Colombo <guglielmoc@google.com>
This commit is contained in:
parent
6b1518cb0b
commit
d462fbd303
1 changed files with 4 additions and 0 deletions
4
.github/workflows/nightly.yml
vendored
4
.github/workflows/nightly.yml
vendored
|
|
@ -11,6 +11,8 @@ permissions:
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
vulncheck:
|
vulncheck:
|
||||||
|
# Don't run scheduled builds on forks.
|
||||||
|
if: github.event_name != 'schedule' || github.repository == 'modelcontextprotocol/go-sdk'
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- name: Run govulncheck
|
- name: Run govulncheck
|
||||||
|
|
@ -20,6 +22,8 @@ jobs:
|
||||||
go-package: ./...
|
go-package: ./...
|
||||||
|
|
||||||
conformance:
|
conformance:
|
||||||
|
# Don't run scheduled builds on forks.
|
||||||
|
if: github.event_name != 'schedule' || github.repository == 'modelcontextprotocol/go-sdk'
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- name: Check out code
|
- name: Check out code
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue