diff --git a/.github/workflows/galaxy-import.yml b/.github/workflows/galaxy-import.yml new file mode 100644 index 0000000..e886eca --- /dev/null +++ b/.github/workflows/galaxy-import.yml @@ -0,0 +1,30 @@ +name: Refresh Ansible Galaxy + +on: + push: + tags: + - "*" + workflow_dispatch: + +jobs: + import: + name: Import role on tag + runs-on: ubuntu-latest + + steps: + - name: Set up Python + uses: actions/setup-python@v5 + with: + python-version: "3.12" + + - name: Install Ansible + run: python -m pip install --upgrade pip ansible-core + + - name: Trigger Ansible Galaxy import + env: + GALAXY_API_KEY: ${{ secrets.GALAXY_API_KEY }} + run: > + ansible-galaxy role import + --api-key "$GALAXY_API_KEY" + ansistrano + deploy