diff --git a/action.yml b/action.yml index 6fb1517..3ae0e39 100644 --- a/action.yml +++ b/action.yml @@ -51,10 +51,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 }} --projectId ${{ inputs.project-id }} --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 | ./yq -r 'keys | .[]' + ./infisical export --domain ${{ inputs.api-url }} --projectId ${{ inputs.project-id }} --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 - run: echo "Secrets added to environment!" + run: echo "Secrets added to environment!" && env