[FEATURE] Auto Oasis Test

This commit is contained in:
Dunemask 2024-02-15 18:02:58 -07:00
parent 41772954b5
commit 4f8f4de829

View file

@ -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!".