Skip to content

Commit

Permalink
Try new Galaxy release workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
t2d committed Oct 29, 2023
1 parent fec9671 commit 4baae38
Showing 1 changed file with 9 additions and 5 deletions.
14 changes: 9 additions & 5 deletions .github/workflows/galaxy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,12 @@ on:
jobs:
galaxy:
name: Ansible Galaxy
uses: systemli/github-ansible-workflow/.github/workflows/ansible-galaxy-workflow.yaml@main
with:
git-branch: ${{ github.ref_name }}
secrets:
galaxy-token: ${{ secrets.galaxy_api_key }}
runs-on: ubuntu-latest
steps:
- name: Install Ansible.
run: pip3 install ansible-core

- name: Trigger a new import on Galaxy.
run: >-
ansible-galaxy role import --api-key ${{ secrets.galaxy_api_key }}
$(echo ${{ github.repository }} | cut -d/ -f1) $(echo ${{ github.repository }} | cut -d/ -f2)

0 comments on commit 4baae38

Please sign in to comment.