From 1fabcc99339af68fea624993b510b048bcfe35a7 Mon Sep 17 00:00:00 2001 From: David Danielsson Date: Wed, 7 Jun 2023 16:41:26 -0500 Subject: [PATCH] release workflow stuff (#84) * hopefully last fix --- .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 d89af31..f77a5de 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_name }}/' galaxy.yml; sed -i 's/{{:dumb_space_issue:}}/ /' galaxy.yml + 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_name }}/' galaxy.yml; sed -i 's/{{:dumb_space_issue:}}/ /' galaxy.yml + 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 }}