Skip to content

Commit

Permalink
Release jobs - only run on shipwright-io/build
Browse files Browse the repository at this point in the history
Add condition to ensure nightly and regular release jobs only run on the
shipwright-io/build repository. This ensures the nightly and official release jobs
do not run on forks.
  • Loading branch information
adambkaplan committed Mar 4, 2021
1 parent b7946cf commit 5741e7c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions .github/workflows/nightly.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ on:

jobs:
nightly:
if: github.repository == "shipwright-io/build"
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ on:

jobs:
release:
if: github.repository == "shipwright-io/build"
runs-on: ubuntu-latest
steps:
- name: Checkout code
Expand Down

0 comments on commit 5741e7c

Please sign in to comment.