From 2be1635deae1f3d2db2793fe75ff81afc8a5ba27 Mon Sep 17 00:00:00 2001 From: David Danielsson Date: Wed, 7 Jun 2023 16:17:20 -0500 Subject: [PATCH] release workflow work (#83) * still tweaking release workflow --- .github/workflows/release.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index a50ce4f..d89af31 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -39,7 +39,7 @@ jobs: run: pip install --upgrade ansible-core - name: Update version in galaxy.yml - run: sed -i 's/version:/version:{{:dumb_space_issue:}}${{ github.ref }}/'; sed -i 's/{{:dumb_space_issue:}}/ /' + run: sed -i 's/version:/version:{{:dumb_space_issue:}}${{ github.ref_name }}/' galaxy.yml; sed -i 's/{{:dumb_space_issue:}}/ /' galaxy.yml - name: Build collection run: ansible-galaxy collection build -vvv @@ -86,7 +86,7 @@ jobs: run: pip install --upgrade ansible-core antsibull-changelog - name: Update version in galaxy.yml - run: sed -i 's/version:/version:{{:dumb_space_issue:}}${{ github.ref }}/'; sed -i 's/{{:dumb_space_issue:}}/ /' + run: sed -i 's/version:/version:{{:dumb_space_issue:}}${{ github.ref_name }}/' galaxy.yml; sed -i 's/{{:dumb_space_issue:}}/ /' galaxy.yml - name: Run changelog run: antsibull-changelog release --verbose --version ${{ github.ref }}