Skip to content

Commit 446d458

Browse files
authored
Update collection installation path (#190)
* Update collection installation path * Reference remote repository * Set path to the upstream when calling github action
1 parent ce8d6b9 commit 446d458

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

.github/actions/build_install_collection/action.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -84,13 +84,13 @@ runs:
8484
working-directory: ${{ inputs.source_path }}
8585

8686
- name: Install collection and dependencies (with --pre flag)
87-
run: ansible-galaxy collection install ./${{ steps.identify.outputs.tar_file || inputs.tar_file }} --pre -p /home/runner/collections
87+
run: ansible-galaxy collection install ./${{ steps.identify.outputs.tar_file || inputs.tar_file }} --pre -p /home/runner/.ansible/collections
8888
shell: bash
8989
working-directory: ${{ inputs.source_path }}
9090
if: ${{ inputs.ansible_version != 'stable-2.9' }}
9191

9292
- 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
93+
run: ansible-galaxy collection install ./${{ steps.identify.outputs.tar_file || inputs.tar_file }} -p /home/runner/.ansible/collections
9494
shell: bash
9595
working-directory: ${{ inputs.source_path }}
9696
if: ${{ inputs.ansible_version == 'stable-2.9' }}

.github/actions/identify_collection/action.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ outputs:
1111
value: ${{ steps.keys.outputs.namespace }}-${{ steps.keys.outputs.name }}-${{ steps.keys.outputs.version }}.tar.gz
1212
collection_path:
1313
description: The final collection path
14-
value: /home/runner/collections/ansible_collections/${{ steps.keys.outputs.namespace }}/${{ steps.keys.outputs.name }}
14+
value: /home/runner/.ansible/collections/ansible_collections/${{ steps.keys.outputs.namespace }}/${{ steps.keys.outputs.name }}
1515
dependency:
1616
description: The collection dependency
1717
value: ${{ steps.keys.outputs.dependency }}

0 commit comments

Comments
 (0)