trying to fix ansible pythons
Some checks failed
Gitea Actions Demo / Explore-Gitea-Actions (push) Failing after 0s
Some checks failed
Gitea Actions Demo / Explore-Gitea-Actions (push) Failing after 0s
This commit is contained in:
@@ -26,8 +26,8 @@ jobs:
|
|||||||
#source $GITHUB_ENV
|
#source $GITHUB_ENV
|
||||||
- name: common-setup-just-created
|
- name: common-setup-just-created
|
||||||
run: |
|
run: |
|
||||||
source /root/.bashrc
|
|
||||||
cd /usr/share/ansible-repo/
|
cd /usr/share/ansible-repo/
|
||||||
|
source sourceme.sh
|
||||||
git pull
|
git pull
|
||||||
python3 --version
|
python3 --version
|
||||||
shell: bash
|
shell: bash
|
||||||
|
|||||||
6
sourceme.sh
Normal file
6
sourceme.sh
Normal file
@@ -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 -)"
|
||||||
Reference in New Issue
Block a user