Skip to content

Commit

Permalink
Add Galaxy role import to Actions
Browse files Browse the repository at this point in the history
This automates the import of the galaxy role.
  • Loading branch information
rascasoft committed Dec 1, 2023
1 parent f5f73c2 commit 1101d24
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,3 +19,14 @@ jobs:
run: ansible-galaxy install -r collections/requirements.yml
- name: Check with ansible-playbook --syntax-check
run: ansible-playbook --syntax-check tests/kubelab.yml

trigger_galaxy_import:
runs-on: ubuntu-latest
needs: lint
container:
image: ghcr.io/mmul-it/kpa
options: --user root
if: github.ref == 'refs/heads/main'
steps:
- name: Trigger Ansible Galaxy to import the role
run: ansible-galaxy role import --token ${{ secrets.GALAXY_API_KEY }} ${{ github.repository_owner }} ${{ github.event.repository.name }}

0 comments on commit 1101d24

Please sign in to comment.