Skip to content

Commit

Permalink
chore: prevent invalid warning when var ENV isn't define (#167)
Browse files Browse the repository at this point in the history
This is ORB_PARAM_ORB_PUB_TOKEN but it is defined via a parameter with a
default as CIRCLE_TOKEN.

If you set ORB_PARAM_ORB_PUB_TOKEN in a context it will not work with
the orb template but if you set CIRCLE_TOKEN it is working properly.
  • Loading branch information
benoittgt authored Dec 12, 2022
1 parent c14c72a commit b2058d6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/scripts/publish.sh
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ function validateProdTag() {
function validateOrbPubToken() {
if [[ -z "${ORB_PARAM_ORB_PUB_TOKEN}" ]]; then
echo "No Orb Publishing Token detected."
echo "Please set the ORB_PARAM_ORB_PUB_TOKEN environment variable."
echo "Please set the CIRCLE_TOKEN environment variable."
echo "Aborting deployment."
exit 1
fi
Expand Down

0 comments on commit b2058d6

Please sign in to comment.