Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
CI: add :- to allow ci env-var probing to default to nothing
  • Loading branch information
JonJagger committed Aug 20, 2022
1 parent 4cdaba6 commit d8a0118
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions scripts/kosli_echo_env_vars.sh
Expand Up @@ -6,12 +6,12 @@ kosli_echo_env_vars()
echo MERKELY_OWNER=cyber-dojo
echo MERKELY_PIPELINE=saver

if [ "${GITHUB_ACTIONS}" == 'true' ]; then
if [ "${GITHUB_ACTIONS:-}" == 'true' ]; then
echo CI_BUILD_NUM=${GITHUB_RUN_NUMBER}
echo CI_BUILD_URL=${GITHUB_SERVER_URL}/${GITHUB_REPOSITORY}/actions/runs/${GITHUB_RUN_ID}
fi

if [ "${CIRCLECI}" == 'true' ]; then
if [ "${CIRCLECI:-}" == 'true' ]; then
echo CI_BUILD_NUM=${CIRCLE_BUILD_NUM}
echo CI_BUILD_URL=${CIRCLE_BUILD_URL}
fi
Expand Down

0 comments on commit d8a0118

Please sign in to comment.