Merge "ensure-twine: Avoid Reinstalling twine if present"
This commit is contained in:
commit
bbf4c1bbaa
@ -1,6 +1,6 @@
|
|||||||
- name: Check for twine install
|
- name: Check for twine install
|
||||||
shell: |
|
shell: |
|
||||||
command -v {{ twine_executable }} || exit 1
|
command -v {{ twine_executable }} ~/.local/bin/twine || exit 1
|
||||||
args:
|
args:
|
||||||
executable: /bin/bash
|
executable: /bin/bash
|
||||||
failed_when: false
|
failed_when: false
|
||||||
@ -8,7 +8,7 @@
|
|||||||
|
|
||||||
- name: Set pypi_twine_executable
|
- name: Set pypi_twine_executable
|
||||||
set_fact:
|
set_fact:
|
||||||
pypi_twine_executable: "{{ register_twine.stdout }}"
|
pypi_twine_executable: "{{ register_twine.stdout_lines[0] }}"
|
||||||
when: register_twine.rc == 0
|
when: register_twine.rc == 0
|
||||||
|
|
||||||
- name: Ensure twine is installed
|
- name: Ensure twine is installed
|
||||||
|
Loading…
Reference in New Issue
Block a user