[FEATURE] Auto Oasis Test

This commit is contained in:
Dunemask 2024-02-15 18:04:03 -07:00
parent 4f8f4de829
commit a371dec5d3

View file

@ -25,21 +25,26 @@ runs:
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
# Get paths and envs into list # Get paths and envs into list
echo "Barely here"
paths="${{ inputs.secret-paths }}" paths="${{ inputs.secret-paths }}"
envs="${{ inputs.secret-envs }}" envs="${{ inputs.secret-envs }}"
echo "Got splt"
path_list=( $(echo $paths | sed "s/,/ /g") ) path_list=( $(echo $paths | sed "s/,/ /g") )
env_list=( $(echo $envs | sed "s/,/ /g") ) env_list=( $(echo $envs | sed "s/,/ /g") )
path_len=${#path_list[@]} path_len=${#path_list[@]}
env_len=${#env_list[@]} env_len=${#env_list[@]}
echo "Got B4"
# Ensure lengths match # Ensure lengths match
if [ "$path_len" != "$env_len" ]; if [ "$path_len" != "$env_len" ];
then then
echo "Input must match the output!" echo "Input must match the output!"
exit 1; exit 1;
fi fi
echo "Got here"
# For each environment # For each environment
for i in "${!path_list[@]}"; for i in "${!path_list[@]}";
do do