From 4baae38a4f49cf89c8a8ba6f924ed5e28c0b3348 Mon Sep 17 00:00:00 2001 From: t2d Date: Sun, 29 Oct 2023 12:50:59 +0100 Subject: [PATCH] Try new Galaxy release workflow --- .github/workflows/galaxy.yml | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git a/.github/workflows/galaxy.yml b/.github/workflows/galaxy.yml index 22c2094..3b3a187 100644 --- a/.github/workflows/galaxy.yml +++ b/.github/workflows/galaxy.yml @@ -10,8 +10,12 @@ on: jobs: galaxy: name: Ansible Galaxy - uses: systemli/github-ansible-workflow/.github/workflows/ansible-galaxy-workflow.yaml@main - with: - git-branch: ${{ github.ref_name }} - secrets: - galaxy-token: ${{ secrets.galaxy_api_key }} + runs-on: ubuntu-latest + steps: + - name: Install Ansible. + run: pip3 install ansible-core + + - name: Trigger a new import on Galaxy. + run: >- + ansible-galaxy role import --api-key ${{ secrets.galaxy_api_key }} + $(echo ${{ github.repository }} | cut -d/ -f1) $(echo ${{ github.repository }} | cut -d/ -f2)