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

ensure nightly builds don't run for forks #4240

Merged
merged 1 commit into from
May 14, 2020
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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