From 3a072c70077ba8b12c12abe4d0640a8a508fe3ab Mon Sep 17 00:00:00 2001 From: Imran Iqbal Date: Sun, 24 Feb 2019 05:02:11 +0000 Subject: [PATCH] ci(travis): prevent `release` stage running for PRs * The `release` stage will always fail due to security reasons: - E.g. https://travis-ci.com/saltstack-formulas/template-formula/jobs/180068519#L466. - Discussed: https://github.com/saltstack-formulas/template-formula/pull/42#issuecomment-466446324. * The `release` stage is unnecessary for PRs until the merge to `master`, in any case. --- .travis.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.travis.yml b/.travis.yml index 09d5aa4b..e899258b 100644 --- a/.travis.yml +++ b/.travis.yml @@ -2,7 +2,7 @@ stages: - test - commitlint - name: release - if: branch = master + if: branch = master AND type != pull_request sudo: required cache: bundler