[HOTFIX] Envar adjust
This commit is contained in:
parent
068503bed5
commit
c7befd3e3d
1 changed files with 2 additions and 2 deletions
|
@ -22,7 +22,7 @@ runs:
|
||||||
run: |
|
run: |
|
||||||
# Install Infisical Binary
|
# Install Infisical Binary
|
||||||
curl -s -L https://github.com/Infisical/infisical/releases/download/infisical-cli%2Fv0.16.10/infisical_0.16.10_linux_amd64.tar.gz | tar xvz
|
curl -s -L https://github.com/Infisical/infisical/releases/download/infisical-cli%2Fv0.16.10/infisical_0.16.10_linux_amd64.tar.gz | tar xvz
|
||||||
|
curl -s -L https://github.com/mikefarah/yq/releases/latest/download/yq_linux_amd64 >> yq
|
||||||
# Get paths and envs into list
|
# Get paths and envs into list
|
||||||
paths="${{ inputs.secret-paths }}"
|
paths="${{ inputs.secret-paths }}"
|
||||||
envs="${{ inputs.secret-envs }}"
|
envs="${{ inputs.secret-envs }}"
|
||||||
|
@ -42,7 +42,7 @@ runs:
|
||||||
# For each environment
|
# For each environment
|
||||||
for i in "${!path_list[@]}";
|
for i in "${!path_list[@]}";
|
||||||
do echo "Getting secrets from path '${path_list[i]}' from '${env_list[i]}'"
|
do echo "Getting secrets from path '${path_list[i]}' from '${env_list[i]}'"
|
||||||
./infisical export --domain ${{ inputs.api-url }} --token ${{ inputs.infisical-token}} --env "${env_list[i]}" --path "${path_list[i]}" >> $GITHUB_ENV;
|
./infisical export --domain ${{ inputs.api-url }} --token ${{ inputs.infisical-token}} --env "${env_list[i]}" --path "${path_list[i]}" --format yaml | ./yq -r 'to_entries[] | .key + "=" +.value' >> $GITHUB_ENV;
|
||||||
done
|
done
|
||||||
|
|
||||||
- shell: bash
|
- shell: bash
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue