Skip to content

Commit

Permalink
CI: Disable the deployment job on forked repos
Browse files Browse the repository at this point in the history
Commit 7f85413 (#37) added a workflow that pushes images to Amazon
ECR and Docker Hub, but the deployment job also ran on forks. This meant
that a push to the `master` branch of a fork would produce a failing CI
check.

This commit causes the deployment job to be skipped on forks.
  • Loading branch information
ee7 committed Jan 7, 2021
1 parent 7f85413 commit a6da9a0
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions .github/workflows/docker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ on:

jobs:
multiple-registries:
if: github.repository_owner == 'exercism' # Stops this job from running on forks.
runs-on: ubuntu-latest

env:
Expand Down

0 comments on commit a6da9a0

Please sign in to comment.