Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CI: Disable the deployment job on forked repos #38

Merged
merged 1 commit into from
Jan 8, 2021

Conversation

ee7
Copy link
Member

@ee7 ee7 commented Jan 8, 2021

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 (see e.g. https://github.com/ee7/nim-test-runner/runs/1663523994)

This commit causes the deployment job to be skipped on forks.

I have pushed this diff to the master branch of my fork to show that
this PR works - see https://github.com/ee7/nim-test-runner/runs/1667814901

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.
@ee7 ee7 requested a review from a team as a code owner January 8, 2021 09:55
@ee7 ee7 merged commit 49d2e27 into exercism:master Jan 8, 2021
@ee7 ee7 deleted the ci-skip-deployment-on-forks branch January 8, 2021 10:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants