Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Correct usage of inputs in action/entrypoint
  • Loading branch information
Kristian Freeman committed Oct 14, 2019
1 parent cc94965 commit e4957e6
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
4 changes: 2 additions & 2 deletions action.yml
Expand Up @@ -4,9 +4,9 @@ runs:
using: 'docker'
image: 'Dockerfile'
inputs:
apiKey:
CLOUDFLARE_API_KEY:
description: "Your Cloudflare API Key"
required: true
email:
CLOUDFLARE_EMAIL:
description: "Your Cloudflare Email"
required: true
7 changes: 5 additions & 2 deletions entrypoint.sh
Expand Up @@ -22,8 +22,11 @@ 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 "${CLOUDFLARE_EMAIL}" "CLOUDFLARE_EMAIL"
sanitize "${CLOUDFLARE_API_KEY}" "CLOUDFLARE_API_KEY"
sanitize "${INPUT_CLOUDFLARE_EMAIL}" "CLOUDFLARE_EMAIL"
sanitize "${INPUT_CLOUDFLARE_API_KEY}" "CLOUDFLARE_API_KEY"

export CLOUDFLARE_EMAIL="$INPUT_CLOUDFLARE_EMAIL"
export CLOUDFLARE_API_KEY="$INPUT_CLOUDFLARE_API_KEY"

npm i @cloudflare/wrangler -g
npm i
Expand Down

0 comments on commit e4957e6

Please sign in to comment.