Skip to content

Commit

Permalink
Try unpacking file from archive
Browse files Browse the repository at this point in the history
  • Loading branch information
tremble committed Jun 28, 2022
1 parent 576d096 commit 7cf1d56
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion playbooks/ansible-galaxy-importer/run.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,18 @@
file: '{{ _fetch.dest }}'
name: galaxy_info

- name: Copy galaxy-importer.cfg to downloads dir
unarchive:
src: "~/downloads/{{ galaxy_info.namespace}}-{{ galaxy_info.name }}-*.tar.gz"
dest: "~/downloads/"
remote_src: true
include:
- "tests/galaxy-importer.cfg"
ignore_errors: true

- name: Confirm collection can be imported into galaxy
args:
chdir: "~/{{ zuul.projects['github.com/ansible-network/releases'].src_dir }}"
shell: "source .tox/venv/bin/activate; cat ${GALAXY_IMPORTER_CONFIG}; ./tools/validate-collection.sh ~/downloads/{{ galaxy_info.namespace}}-{{ galaxy_info.name }}-*.tar.gz"
environment:
GALAXY_IMPORTER_CONFIG: "~/{{ zuul.project.src_dir }}/tests/galaxy-importer.cfg"
GALAXY_IMPORTER_CONFIG: "~/downloads/tests/galaxy-importer.cfg"

0 comments on commit 7cf1d56

Please sign in to comment.