You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
environments=()
fordirin vre-singleuser-py38 vre-singleuser-root vre-singleuser;doecho"$dir was changed"if [[ $(echo ${environments[@]}| fgrep -w ${dir}) ]];thenecho" - ${dir} is in the list of changed dirs"elseecho" - ${dir} is NOT in the list of changed dirs. Adding it!"
environments+=("\"${dir}\"")
echo" ** The update list is ${environments[@]}"fidone
ENVS_LIST=`echo "[${environments[@]}]"| sed 's/ /,/g'`echo ::set-output name=environment_list::$ENVS_LISTecho"The final list is: ${ENVS_LIST}"
Will give as output
vre-singleuser-py38 was changed
- vre-singleuser-py38 is NOT in the list of changed dirs. Adding it!** The update list is "vre-singleuser-py38"
vre-singleuser-root was changed
- vre-singleuser-root is NOT in the list of changed dirs. Adding it!** The update list is "vre-singleuser-py38""vre-singleuser-root"
vre-singleuser was changed
- vre-singleuser is in the list of changed dirs
The final list is: ["vre-singleuser-py38","vre-singleuser-root"]
vre-singleuser is NOT a substring of vre-singleuser-py38 when run on bash.
The text was updated successfully, but these errors were encountered:
This only happens when changes in
vre-singleuser
andvre-singleuser-*
directories happen simultaneously.Why ?
Github Actions variables are not real bash objects.
Priority ?
Low. Users are not expected to change
vre-singleuser
, thus this situation will rarely happen.example of issue: https://github.com/vre-hub/environments/actions/runs/5659959759/job/15334606680
Will give as output
vre-singleuser
is NOT a substring ofvre-singleuser-py38
when run onbash
.The text was updated successfully, but these errors were encountered: