Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
fix
  • Loading branch information
Kristian Freeman committed Oct 11, 2019
1 parent aab7849 commit 698bc9d
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions entrypoint.sh
Expand Up @@ -7,7 +7,7 @@ export NVM_DIR="/github/workspace/nvm"
export WRANGLER_HOME="/github/workspace"

# h/t https://github.com/elgohr/Publish-Docker-Github-Action
function sanitize() {
function sanitize () {
if [ -z "${1}" ]; then
>&2 echo "Unable to find the ${2}. Did you set with.${2}?"
exit 1
Expand All @@ -21,9 +21,9 @@ curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.35.0/install.sh | bash
mkdir -p "$HOME/.wrangler"
chmod -R 777 "$HOME/.wrangler"

_sanitize "${INPUT_EMAIL}" "email"
sanitize "${INPUT_EMAIL}" "email"
export CLOUDFLARE_EMAIL="$INPUT_EMAIL"
_sanitize "${INPUT_APIKEY}" "apiKey"
sanitize "${INPUT_APIKEY}" "apiKey"
export CLOUDFLARE_API_KEY="$INPUT_APIKEY"

npm i @cloudflare/wrangler -g
Expand Down

0 comments on commit 698bc9d

Please sign in to comment.