Skip to content

Commit

Permalink
Avoid CI failures in forks
Browse files Browse the repository at this point in the history
When contributors fork the repo, they get GH actions that run when they push code to their forks. This change prevents GH Action "release" job failures. Example failure: https://github.com/shestee/mockito/actions/runs/375185562
  • Loading branch information
mockitoguy committed Nov 21, 2020
1 parent f8d0f1b commit f5419b0
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions .github/workflows/ci.yml
Expand Up @@ -74,6 +74,7 @@ jobs:

if: github.event_name == 'push'
&& github.ref == 'refs/heads/release/3.x'
&& github.repository == 'mockito/mockito'
&& !contains(toJSON(github.event.commits.*.message), '[skip release]')

steps:
Expand Down

0 comments on commit f5419b0

Please sign in to comment.