Skip to content

Commit

Permalink
Fix namespace and add debug
Browse files Browse the repository at this point in the history
Signed-off-by: staticdev <staticdev-support@proton.me>
  • Loading branch information
staticdev committed Feb 24, 2023
1 parent 8b44c6e commit aa088dd
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 8 deletions.
15 changes: 9 additions & 6 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion galaxy-deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
2 changes: 1 addition & 1 deletion galaxy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ namespace: aalaesar
name: nextcloud

# The version of the collection. Must be compatible with semantic versioning
version: 1.9.0
version: 1.9.1

# The path to the Markdown (.md) readme file. This path is relative to the root of the collection
readme: README.md
Expand Down

0 comments on commit aa088dd

Please sign in to comment.