Skip to content

Commit fe80d74

Browse files
committed
🚧
1 parent 57e1cca commit fe80d74

File tree

1 file changed

+27
-1
lines changed

1 file changed

+27
-1
lines changed

.github/workflows/code-embedder.yaml

Lines changed: 27 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,33 @@ jobs:
5151
run: python dev/scripts/format_snippet_prints.py
5252

5353
- name: 🏞️ Deactivate virtual environment
54-
run: deactivate
54+
run: |
55+
unset -f pydoc > /dev/null 2>&1 || true
56+
if ! [ -z "${_OLD_VIRTUAL_PATH:+_}" ]
57+
then
58+
PATH="$_OLD_VIRTUAL_PATH"
59+
export PATH
60+
unset _OLD_VIRTUAL_PATH
61+
fi
62+
if ! [ -z "${_OLD_VIRTUAL_PYTHONHOME+_}" ]
63+
then
64+
PYTHONHOME="$_OLD_VIRTUAL_PYTHONHOME"
65+
export PYTHONHOME
66+
unset _OLD_VIRTUAL_PYTHONHOME
67+
fi
68+
hash -r 2> /dev/null
69+
if ! [ -z "${_OLD_VIRTUAL_PS1+_}" ]
70+
then
71+
PS1="$_OLD_VIRTUAL_PS1"
72+
export PS1
73+
unset _OLD_VIRTUAL_PS1
74+
fi
75+
unset VIRTUAL_ENV
76+
unset VIRTUAL_ENV_PROMPT
77+
if [ ! "${1-}" = "nondestructive" ]
78+
then
79+
unset -f deactivate
80+
fi
5581
5682
- name: 📝 Run code embedder
5783
uses: kvankova/[email protected]

0 commit comments

Comments
 (0)