From 5269f17583cbf441ffb16657298f1f4ef67d95ba Mon Sep 17 00:00:00 2001 From: Bertrand Lanson Date: Thu, 16 Mar 2023 23:36:23 +0100 Subject: [PATCH] renamed pip install task to avoid confusion with apt install task, 1st publish --- .github/workflows/publish.yml | 18 ++++++++++++++++++ tasks/main.yml | 2 +- 2 files changed, 19 insertions(+), 1 deletion(-) create mode 100644 .github/workflows/publish.yml diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml new file mode 100644 index 0000000..784f2c9 --- /dev/null +++ b/.github/workflows/publish.yml @@ -0,0 +1,18 @@ +--- +name: publish +on: + push: + branches: + - main + +jobs: + publish: + name: Publish to galaxy + runs-on: ubuntu-latest + steps: + - name: Checkout + uses: actions/checkout@v3 + - name: Publish + uses: ednxzu/galaxy-import-role@v1 + with: + galaxy-api-key: ${{ secrets.GALAXY_API_TOKEN }} diff --git a/tasks/main.yml b/tasks/main.yml index d170a81..dc7200a 100644 --- a/tasks/main.yml +++ b/tasks/main.yml @@ -4,7 +4,7 @@ ansible.builtin.include_tasks: prerequisites.yml when: manage_pip_packages_install_prereqs -- name: "Install/remove required packages" +- name: "Install/remove required pip packages" ansible.builtin.pip: name: "{{ item.name }}{% if item.version_constraint not in [None, '', 'latest'] %}{{ item.version_constraint }}{% endif %}" state: "{{ item.state }}"