pghalliday/gh-pages-travis

PR fails for outside collaborators builds

anjmao opened this issue · 1 comments

Hi, thanks for this great script :)
It works well for my own pull requests but I noticed travis build failed for outside collaborator. Here is travis output https://travis-ci.org/ng-select/ng-select/builds/292319436?utm_source=github_status&utm_medium=notification

It failed on line

The command "openssl aes-256-cbc -K $encrypted_100b62b33cf9_key -iv $encrypted_100b62b33cf9_iv -in travis_rsa.enc -out travis_rsa -d" failed and exited with 1 during .

My travis config

Maybe you see something is wrong with my configuration or maybe gh-pages-travis is not supporting this case? :)

I figured it out. I needed to add if check to run this only on master

- if [ "$TRAVIS_BRANCH" == "master" ]; then ...  fi