Skip to content
This repository has been archived by the owner on Dec 16, 2022. It is now read-only.

Commit

Permalink
ensure nightly builds don't run for forks (#4240)
Browse files Browse the repository at this point in the history
  • Loading branch information
epwalsh authored May 14, 2020
1 parent 3f19336 commit 99bf1ff
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions .github/workflows/master.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,8 @@ jobs:
check_core:
name: Check Core
# Don't run nightly builds for forks.
if: github.repository == 'allenai/allennlp' || github.event_name != 'schedule'
runs-on: ubuntu-latest
strategy:
matrix:
Expand Down Expand Up @@ -104,6 +106,8 @@ jobs:
check_models:
name: Check Models
# Don't run nightly builds for forks.
if: github.repository == 'allenai/allennlp' || github.event_name != 'schedule'
runs-on: ubuntu-latest
strategy:
matrix:
Expand Down Expand Up @@ -150,6 +154,8 @@ jobs:
# Builds package distribution files for PyPI.
build_package:
name: Build Package
# Don't run nightly builds for forks.
if: github.repository == 'allenai/allennlp' || github.event_name != 'schedule'
runs-on: ubuntu-latest

steps:
Expand Down Expand Up @@ -216,6 +222,8 @@ jobs:
# Tests installing from the distribution files.
test_package:
name: Test Package
# Don't run nightly builds for forks.
if: github.repository == 'allenai/allennlp' || github.event_name != 'schedule'
needs: [build_package] # needs the package artifact created from 'build_package' job.
runs-on: ubuntu-latest
strategy:
Expand Down Expand Up @@ -253,6 +261,8 @@ jobs:
# Builds Docker image from the core distribution files and uploads to Docker Hub.
docker:
name: Docker
# Don't run nightly builds for forks.
if: github.repository == 'allenai/allennlp' || github.event_name != 'schedule'
needs: [build_package] # needs the package artifact created from 'build_package' job.
runs-on: ubuntu-latest

Expand Down Expand Up @@ -305,6 +315,8 @@ jobs:
# allennlp-docs repo.
docs:
name: Docs
# Don't run nightly builds for forks.
if: github.repository == 'allenai/allennlp' || github.event_name != 'schedule'
runs-on: ubuntu-latest

steps:
Expand Down

0 comments on commit 99bf1ff

Please sign in to comment.