trying to fix ansible pythons
Some checks failed
Gitea Actions Demo / Explore-Gitea-Actions (push) Failing after 0s

This commit is contained in:
hogweed1
2025-11-23 01:39:47 +10:00
parent 626af9232d
commit 8530965f46
2 changed files with 7 additions and 1 deletions

View File

@@ -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
View 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 -)"