@@ -18,7 +18,11 @@ inputs:
18
18
The collection tarball when built
19
19
If not set, this will be determined by the action
20
20
default : " "
21
-
21
+ ansible_version :
22
+ description : |
23
+ Ansible Core version from the workflow.
24
+ required : false
25
+ default : " "
22
26
outputs :
23
27
collection_path :
24
28
description : The final collection path
62
66
63
67
- name : Install collection python requirements
64
68
if : ${{ inputs.install_python_dependencies == 'true' }}
69
+
65
70
run : python3 -m pip install -r requirements.txt -r test-requirements.txt
66
71
shell : bash
67
72
working-directory : ${{ inputs.source_path }}
@@ -78,10 +83,17 @@ runs:
78
83
shell : bash
79
84
working-directory : ${{ inputs.source_path }}
80
85
81
- - name : Install collection and dependencies
86
+ - name : Install collection and dependencies (with --pre flag)
82
87
run : ansible-galaxy collection install ./${{ steps.identify.outputs.tar_file || inputs.tar_file }} --pre -p /home/runner/collections
83
88
shell : bash
84
89
working-directory : ${{ inputs.source_path }}
90
+ if : ${{ inputs.ansible_version != 'stable-2.9' }}
91
+
92
+ - name : Install collection and dependencies (without --pre flag)
93
+ run : ansible-galaxy collection install ./${{ steps.identify.outputs.tar_file || inputs.tar_file }} -p /home/runner/collections
94
+ shell : bash
95
+ working-directory : ${{ inputs.source_path }}
96
+ if : ${{ inputs.ansible_version == 'stable-2.9' }}
85
97
86
98
- name : Copy the galaxy.yml from source to destination, needed for pytest-ansible-units
87
99
run : cp galaxy.yml ${{ steps.identify.outputs.collection_path || inputs.collection_path }}/galaxy.yml
0 commit comments