Skip to content

Commit

Permalink
Use native GitHub Action for Galaxy import
Browse files Browse the repository at this point in the history
The original import method doesn't seem to work anymore, let's try the native
GitHub Action.
  • Loading branch information
rascasoft committed Dec 4, 2023
1 parent 1101d24 commit 05c4848
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,10 +23,11 @@ jobs:
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 }}
- name: Checkout repository
uses: actions/checkout@v3
- name: Release Ansible Role to Galaxy
uses: hspaans/ansible-galaxy-action@v1
with:
api_key: ${{ secrets.GALAXY_API_KEY }}

0 comments on commit 05c4848

Please sign in to comment.