[CHORE] Tweak Action Inputs
This commit is contained in:
parent
83fa63b974
commit
11fe49dd2a
1 changed files with 13 additions and 14 deletions
27
action.yml
27
action.yml
|
@ -1,25 +1,24 @@
|
||||||
name: 'Elysium Infisical Secrets'
|
name: "Elysium Infisical Secrets"
|
||||||
description: 'Fetch secrets from Infisical and add them to the env'
|
description: "Fetch secrets from Infisical and add them to the env"
|
||||||
inputs:
|
inputs:
|
||||||
infisical-token:
|
infisical-token:
|
||||||
description: 'Infisical API Token'
|
description: "Infisical API Token"
|
||||||
required: true
|
required: true
|
||||||
secret-envs:
|
secret-envs:
|
||||||
description: 'The environments to fetch secrets for (Example: ci or ci,prod,edge )'
|
description: "The environments to fetch secrets for (Example: ci or ci,prod,edge )"
|
||||||
required: true
|
required: true
|
||||||
secret-paths:
|
secret-paths:
|
||||||
description: 'Secret paths for the secrets (Must match the order of envs! Example: /main or /main,/alt-main)'
|
description: "Secret paths for the secrets (Must match the order of envs! Example: /main or /main,/alt-main)"
|
||||||
|
required: true
|
||||||
|
project-id:
|
||||||
|
description: "Infisical Secrets Project"
|
||||||
required: true
|
required: true
|
||||||
api-url:
|
api-url:
|
||||||
description: 'Infisical API URL (defaults to https://infisical.dunemask.dev/api)'
|
description: "Infisical API URL (defaults to https://infisical.dunemask.dev/api)"
|
||||||
required: false
|
required: false
|
||||||
default: 'https://infisical.dunemask.dev/api'
|
default: "https://infisical.dunemask.dev/api"
|
||||||
project-id:
|
|
||||||
description: 'Infisical API URL (defaults to https://infisical.dunemask.dev/api)'
|
|
||||||
required: false
|
|
||||||
default: ${{ vars.INFISICAL_SECRETS_PROJECT_ID }}
|
|
||||||
runs:
|
runs:
|
||||||
using: 'composite'
|
using: "composite"
|
||||||
steps:
|
steps:
|
||||||
- name: Infisical CLI install
|
- name: Infisical CLI install
|
||||||
shell: bash
|
shell: bash
|
||||||
|
@ -27,7 +26,7 @@ runs:
|
||||||
# Install Infisical Binary
|
# Install Infisical Binary
|
||||||
echo "Installing Infisical!"
|
echo "Installing Infisical!"
|
||||||
curl -s -L https://github.com/Infisical/infisical/releases/download/infisical-cli%2Fv0.28.5/infisical_0.28.5_linux_amd64.tar.gz | tar xvzf - infisical
|
curl -s -L https://github.com/Infisical/infisical/releases/download/infisical-cli%2Fv0.28.5/infisical_0.28.5_linux_amd64.tar.gz | tar xvzf - infisical
|
||||||
|
|
||||||
# Install yq
|
# Install yq
|
||||||
echo "Installing yq"
|
echo "Installing yq"
|
||||||
curl -s -L https://github.com/mikefarah/yq/releases/latest/download/yq_linux_amd64 >> yq
|
curl -s -L https://github.com/mikefarah/yq/releases/latest/download/yq_linux_amd64 >> yq
|
||||||
|
@ -58,4 +57,4 @@ runs:
|
||||||
rm mask.sh
|
rm mask.sh
|
||||||
done
|
done
|
||||||
- shell: bash
|
- shell: bash
|
||||||
run: echo "Secrets added to environment!"
|
run: echo "Secrets added to environment!"
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue