From 1e037db4a0fc76f26f5824c4a4f27cff67048e1c Mon Sep 17 00:00:00 2001 From: Fuochi Date: Tue, 10 Jan 2023 15:20:59 +0400 Subject: [PATCH] fix: release workflow --- .github/workflows/release-management.yml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/release-management.yml b/.github/workflows/release-management.yml index 2b0a78e..05f9026 100644 --- a/.github/workflows/release-management.yml +++ b/.github/workflows/release-management.yml @@ -24,6 +24,7 @@ jobs: runs-on: ubuntu-latest outputs: release_created: ${{ steps.release_please.outputs.release_created }} + tag_name: ${{ steps.release_please.outputs.tag_name }} steps: - uses: actions/checkout@v3 with: @@ -47,10 +48,9 @@ jobs: - uses: actions/checkout@v3 - name: Set version in galaxy.yml run: | - sed -re 's/^version:.*$/version: ${version}/' -i galaxy.yml - with: - version: ${{ needs.release-please.outputs.tag_name }} + version=${{ needs.release-please.outputs.tag_name }} + sed -re "s/^version:.*$/version: ${version:1}/" -i galaxy.yml - name: Upload collection to Ansible Galaxy uses: ansible/ansible-publish-action@v1.0.0 with: - api_key: ${{ secrets.ANSIBLE_GALAXY_API_KEY }} \ No newline at end of file + api_key: ${{ secrets.ANSIBLE_GALAXY_API_KEY }}