diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 3e4dd6d3..d31fa692 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -45,15 +45,18 @@ jobs: pip install --constraint=.github/workflows/constraints.txt ansible - name: Release to Ansible Galaxy. + if: "steps.check-version.outputs.tag" env: ANSIBLE_GALAXY_TOKEN: ${{ secrets.GALAXY_TOKEN }} run: >- - ansible-playbook -i 'localhost,' galaxy-deploy.yml - -e "github_tag=${{ github.ref }}" - -e "namespace=$(echo ${{ github.repository }} - | cut -d/ -f1)" - -e "collection=$(echo ${{ github.repository }} - | cut -d/ -f2)" + ansible-playbook -vvv -i 'localhost,' galaxy-deploy.yml + -e "github_tag=$(cat galaxy.yml|grep version:|cut -d' ' -f2)" + -e "ansible_namespace=aalaesar" + -e "collection=nextcloud" + # -e "ansible_namespace=$(echo ${{ github.repository }} + # | cut -d/ -f1)" + # -e "collection=$(echo ${{ github.repository }} + # | cut -d/ -f2)" - name: Publish the release notes uses: release-drafter/release-drafter@v5 diff --git a/galaxy-deploy.yml b/galaxy-deploy.yml index 8896b6ad..041c218d 100644 --- a/galaxy-deploy.yml +++ b/galaxy-deploy.yml @@ -47,4 +47,4 @@ - name: Publish the collection. command: > - ansible-galaxy collection publish ./{{ namespace }}-{{ collection }}-{{ release_tag }}.tar.gz + ansible-galaxy collection publish ./{{ ansible_namespace }}-{{ collection }}-{{ release_tag }}.tar.gz