Skip to content

Commit

Permalink
Add native GitHub Action for Galaxy import
Browse files Browse the repository at this point in the history
This adds the automation to publish the Galaxy Role [1].

[1] https://galaxy.ansible.com/ui/standalone/roles/mmul/terraform_tfs_generator/
  • Loading branch information
rascasoft committed Dec 5, 2023
1 parent fbd1c92 commit 9a4f36b
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,3 +39,15 @@ jobs:
echo "Checking tests/terraform/${tf}";
test -f tests/terraform/${tf};
done

trigger_galaxy_import:
runs-on: ubuntu-latest
needs: test
if: github.ref == 'refs/heads/main'
steps:
- 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 9a4f36b

Please sign in to comment.