[HOTFIX] Workflow Overhaul

This commit is contained in:
Dunemask 2024-02-20 03:13:15 -07:00
parent 1d43d3ed6c
commit 83b09537fc

View file

@ -48,7 +48,10 @@ runs:
# For each environment
for i in "${!path_list[@]}";
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]}" --format yaml | ./yq -r 'to_entries[] | .key + "=" +.value' >> $GITHUB_ENV;
./infisical export --domain ${{ inputs.api-url }} --token ${{ inputs.infisical-token}} --env "${env_list[i]}" --path "${path_list[i]}" --format yaml | tee >(yq -r 'to_entries[] | .key + "=" +.value' >> $GITHUB_ENV) | yq -r 'to_entries[] | "echo ::add-mask::\"" + .value + "\""' >> mask.sh;
chmod +x mask.sh
./mask.sh
rm mask.sh
done
- shell: bash