Correct usage of inputs in action/entrypoint

This commit is contained in:
Kristian Freeman 2019-10-14 15:04:41 -05:00
parent cc94965ee9
commit e4957e60c0
2 changed files with 7 additions and 4 deletions

View file

@ -4,9 +4,9 @@ runs:
using: 'docker' using: 'docker'
image: 'Dockerfile' image: 'Dockerfile'
inputs: inputs:
apiKey: CLOUDFLARE_API_KEY:
description: "Your Cloudflare API Key" description: "Your Cloudflare API Key"
required: true required: true
email: CLOUDFLARE_EMAIL:
description: "Your Cloudflare Email" description: "Your Cloudflare Email"
required: true required: true

View file

@ -22,8 +22,11 @@ curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.35.0/install.sh | bash
mkdir -p "$HOME/.wrangler" mkdir -p "$HOME/.wrangler"
chmod -R 777 "$HOME/.wrangler" chmod -R 777 "$HOME/.wrangler"
sanitize "${CLOUDFLARE_EMAIL}" "CLOUDFLARE_EMAIL" sanitize "${INPUT_CLOUDFLARE_EMAIL}" "CLOUDFLARE_EMAIL"
sanitize "${CLOUDFLARE_API_KEY}" "CLOUDFLARE_API_KEY" 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 @cloudflare/wrangler -g
npm i npm i