From 610e14b8c24d1a59eb57f782ef1600c4e2a065f1 Mon Sep 17 00:00:00 2001 From: kewl <21009980+kewlfft@users.noreply.github.com> Date: Fri, 22 Aug 2025 20:51:19 +0100 Subject: [PATCH] Update galaxy.yml fix path --- .github/workflows/galaxy.yml | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/.github/workflows/galaxy.yml b/.github/workflows/galaxy.yml index fb74d8b..f90cfd7 100644 --- a/.github/workflows/galaxy.yml +++ b/.github/workflows/galaxy.yml @@ -32,17 +32,19 @@ jobs: echo "version=$tag_version" >> "$GITHUB_OUTPUT" - name: Build collection - run: ansible-galaxy collection build + id: build + run: | + path=$(ansible-galaxy collection build | awk '/Created collection/ {print $NF}') + echo "tarball=$path" >> "$GITHUB_OUTPUT" - name: Upload built collection artifact uses: actions/upload-artifact@v4 with: name: ansible-collection-tarball - path: kewlfft-aur-*.tar.gz + path: ${{ steps.build.outputs.tarball }} - name: Publish collection run: | - tarball=$(realpath kewlfft-aur-*.tar.gz) - echo "📦 Publishing $tarball ..." - ansible-galaxy collection publish "$tarball" \ + echo "📦 Publishing ${{ steps.build.outputs.tarball }} ..." + ansible-galaxy collection publish "${{ steps.build.outputs.tarball }}" \ --api-key "${{ secrets.ANSIBLE_GALAXY_API_KEY }}"