fix: replace dash with underscore in environment variable
This commit is contained in:
parent
f20d6760c4
commit
3b688127ca
1 changed files with 3 additions and 3 deletions
|
@ -127,7 +127,7 @@ runs:
|
||||||
- name: Run Ansible Playbook
|
- name: Run Ansible Playbook
|
||||||
shell: bash
|
shell: bash
|
||||||
run: |
|
run: |
|
||||||
EE-REQUIREMENTS_PIP='/workspace/${{ gitea.repository }}/plays/roles/michaelsasser.${{ steps.get-role-info.outputs.role_name }}/meta/ee-requirements.txt'
|
EE_REQUIREMENTS_PIP='/workspace/${{ gitea.repository }}/plays/roles/michaelsasser.${{ steps.get-role-info.outputs.role_name }}/meta/ee-requirements.txt'
|
||||||
|
|
||||||
# Only install dependencies if there are some
|
# Only install dependencies if there are some
|
||||||
if [ '${{ steps.get-role-has-dependencies.outputs.role_has_dependencies }}' = 'true' ]; then
|
if [ '${{ steps.get-role-has-dependencies.outputs.role_has_dependencies }}' = 'true' ]; then
|
||||||
|
@ -140,8 +140,8 @@ runs:
|
||||||
ansible-runner run --playbook '/workspace/${{ gitea.repository }}/plays/${{ steps.get-role-info.outputs.role_name }}.yml' --inventory '/workspace/${{ gitea.repository }}/inventory/hosts.yml' --cmdline '--private-key /home/runner/.ssh/id_ed25519' '/workspace/${{ gitea.repository }}'
|
ansible-runner run --playbook '/workspace/${{ gitea.repository }}/plays/${{ steps.get-role-info.outputs.role_name }}.yml' --inventory '/workspace/${{ gitea.repository }}/inventory/hosts.yml' --cmdline '--private-key /home/runner/.ssh/id_ed25519' '/workspace/${{ gitea.repository }}'
|
||||||
else
|
else
|
||||||
# Install pip dependencies
|
# Install pip dependencies
|
||||||
if [ -f "${EE-REQUIREMENTS_PIP}" ]; then
|
if [ -f "${EE_REQUIREMENTS_PIP}" ]; then
|
||||||
pip install --no-cache-dir --break-system-packages -r "${EE-REQUIREMENTS_PIP}"
|
pip install --no-cache-dir --break-system-packages -r "${EE_REQUIREMENTS_PIP}"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
ansible-playbook --version
|
ansible-playbook --version
|
||||||
|
|
Loading…
Add table
Reference in a new issue