diff --git a/.gitea/workflows/act.yaml b/.gitea/workflows/act.yaml index ddc004a..1cc6763 100644 --- a/.gitea/workflows/act.yaml +++ b/.gitea/workflows/act.yaml @@ -26,8 +26,8 @@ jobs: #source $GITHUB_ENV - name: common-setup-just-created run: | - source /root/.bashrc cd /usr/share/ansible-repo/ + source sourceme.sh git pull python3 --version shell: bash diff --git a/sourceme.sh b/sourceme.sh new file mode 100644 index 0000000..fc65848 --- /dev/null +++ b/sourceme.sh @@ -0,0 +1,6 @@ +export PYENV_ROOT="$HOME/.pyenv" +export PATH="$PYENV_ROOT/bin:$PATH" + +cd /usr/share/ansible-repo +eval "$(/root/.pyenv/bin/pyenv init --path)" +eval "$(/root/.pyenv/bin/pyenv virtualenv-init -)" \ No newline at end of file