Skip to content

Commit

Permalink
ci(travis): prevent release stage running for PRs
Browse files Browse the repository at this point in the history
* The `release` stage will always fail due to security reasons:
  - E.g. https://travis-ci.com/saltstack-formulas/template-formula/jobs/180068519#L466.
  - Discussed: saltstack-formulas#42 (comment).
* The `release` stage is unnecessary for PRs until the merge to `master`, in any case.
  • Loading branch information
myii committed Feb 24, 2019
1 parent c246939 commit 3a072c7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ stages:
- test
- commitlint
- name: release
if: branch = master
if: branch = master AND type != pull_request

sudo: required
cache: bundler
Expand Down

0 comments on commit 3a072c7

Please sign in to comment.