mirror of
https://github.com/cloudflare/wrangler-action.git
synced 2024-11-22 01:53:24 +01:00
Correct usage of inputs in action/entrypoint
This commit is contained in:
parent
cc94965ee9
commit
e4957e60c0
2 changed files with 7 additions and 4 deletions
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue