From 9a4f36b594b9df74efcf830652f3dfbbe7d95cff Mon Sep 17 00:00:00 2001 From: Raoul Scarazzini Date: Tue, 5 Dec 2023 11:35:21 +0100 Subject: [PATCH] Add native GitHub Action for Galaxy import This adds the automation to publish the Galaxy Role [1]. [1] https://galaxy.ansible.com/ui/standalone/roles/mmul/terraform_tfs_generator/ --- .github/workflows/main.yml | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index c6dd54c..cbcab5d 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -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 }}