From bd1063d092669153206671f1b38d5668342616a6 Mon Sep 17 00:00:00 2001 From: AtomicFS Date: Fri, 22 Nov 2024 17:17:58 +0100 Subject: [PATCH] fix(ci): replace only first semver in Taskfile - as it was until now, the 'sed' replaces all occurances of SEMVER - this way, only the first global SEMVER will be replaced Signed-off-by: AtomicFS --- .github/workflows/release-prepare.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/release-prepare.yml b/.github/workflows/release-prepare.yml index 3eba17a7..1585f865 100644 --- a/.github/workflows/release-prepare.yml +++ b/.github/workflows/release-prepare.yml @@ -36,7 +36,7 @@ jobs: sed -i -E 's/const firmwareActionVersion = .*/const firmwareActionVersion = "${{ steps.semver.outputs.next }}"/g' action/main.go - name: Update Taskfile.yml run: | - sed -i -E "s/SEMVER: .*/SEMVER: '${{ steps.semver.outputs.next }}'/g" Taskfile.yml + sed -i -E "s/^ SEMVER: .*/ SEMVER: '${{ steps.semver.outputs.next }}'/g" Taskfile.yml - name: Update action.yml run: | sed -i -E "s/version=v[a-zA-Z0-9\.]+/version=${{ steps.semver.outputs.next }}/g" action.yml