[FEATURE] Auto Oasis Test
This commit is contained in:
parent
41772954b5
commit
4f8f4de829
1 changed files with 10 additions and 10 deletions
20
action.yml
20
action.yml
|
@ -34,18 +34,18 @@ runs:
|
|||
env_len=${#env_list[@]}
|
||||
|
||||
# Ensure lengths match
|
||||
# if [ "$path_len" != "$env_len" ];
|
||||
# then
|
||||
# echo "Input must match the output!"
|
||||
# exit 1;
|
||||
# fi
|
||||
if [ "$path_len" != "$env_len" ];
|
||||
then
|
||||
echo "Input must match the output!"
|
||||
exit 1;
|
||||
fi
|
||||
|
||||
# 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]}" >> $GITHUB_ENV;
|
||||
# done
|
||||
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]}" >> $GITHUB_ENV;
|
||||
done
|
||||
|
||||
- shell: bash
|
||||
run: echo "Secrets added to environment!".
|
Loading…
Add table
Add a link
Reference in a new issue