From 8acc9b6adc8587920817bb38a70341dc926b5060 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lu=C3=ADs=20Guimar=C3=A3es?= Date: Mon, 13 May 2024 00:02:18 +0000 Subject: [PATCH] Fix release action (#8) * fix release action * fix yaml lint --- .github/workflows/release.yml | 6 ++++-- .yamllint | 1 + 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index aa892b6..eaef725 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -29,5 +29,7 @@ jobs: - 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) + ansible-galaxy role import --token ${{ secrets.ANSIBLE_GALAXY_TOKEN }} --branch ${{ github.ref_name }} ${{ github.repository_owner }} ${{ github.event.repository.name }} + + - name: Release + uses: softprops/action-gh-release@v2 diff --git a/.yamllint b/.yamllint index 7509c15..791667c 100644 --- a/.yamllint +++ b/.yamllint @@ -1,3 +1,4 @@ --- ignore: | .github/*.yml + .github/workflows/*.yml