From 38b1740be29c84ea2c181e37cd1d7ae1ce7c8f23 Mon Sep 17 00:00:00 2001 From: Ricard Clau Date: Mon, 23 Mar 2026 10:03:50 +0100 Subject: [PATCH] Add Ansible Galaxy tag import workflow --- .github/workflows/galaxy-import.yml | 30 +++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 .github/workflows/galaxy-import.yml 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