Skip to content

Commit

Permalink
feat(make-dist): only read Rollbar token if it's not in the env
Browse files Browse the repository at this point in the history
  • Loading branch information
EtienneM committed Jul 21, 2022
1 parent f6e2799 commit 4aea403
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,3 +33,5 @@ jobs:
- name: Build the binaries
run: |
./dists/make-release.sh -v $(cat VERSION) -b
env:
ROLLBAR_TOKEN: ${{ secrets.ROLLBAR_TOKEN }}
8 changes: 5 additions & 3 deletions dists/make-release.sh
Original file line number Diff line number Diff line change
Expand Up @@ -26,10 +26,12 @@ fi
bin_dir="bin/$VERSION"
mkdir -p $bin_dir

read -p "Which Rollbar token should be used in this release: " ROLLBAR_TOKEN
if [[ -z $ROLLBAR_TOKEN ]]; then
echo "Rollbar token is mandatory" >&2
exit 2
read -p "Which Rollbar token should be used in this release: " ROLLBAR_TOKEN
if [[ -z $ROLLBAR_TOKEN ]]; then
echo "Rollbar token is mandatory" >&2
exit 2
fi
fi

function build_for() {
Expand Down

0 comments on commit 4aea403

Please sign in to comment.