From 1026c6a4626b32b39e4571447116cd4c69febf19 Mon Sep 17 00:00:00 2001 From: Casey Waldren Date: Tue, 26 Mar 2024 10:22:44 -0700 Subject: [PATCH] ci: fix sed command in check-go-versions.yml --- .github/workflows/check-go-versions.yml | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/.github/workflows/check-go-versions.yml b/.github/workflows/check-go-versions.yml index debe4b20..cbdefed6 100644 --- a/.github/workflows/check-go-versions.yml +++ b/.github/workflows/check-go-versions.yml @@ -55,10 +55,11 @@ jobs: if: steps.go-versions.outputs.latest != env.officialLatestVersion id: update-go-versions run: | - sed -e "s#latest=[^ ]*#latest=${{ env.officialLatestVersion }}#g" - -e "s#penultimate=[^ ]*#penultimate=${{ env.officialPenultimateVersion }}#g" - ./.github/variables/go-versions.env - sed -i "s/Go version {{ steps.go-versions.outputs.penultimate }}/Go version ${{ env.officialPenultimateVersion }}/g" README.md + sed -i -e "s#latest=[^ ]*#latest=${{ env.officialLatestVersion }}#g" \ + -e "s#penultimate=[^ ]*#penultimate=${{ env.officialPenultimateVersion }}#g" \ + ./.github/variables/go-versions.env + sed -i "s/Go version {{ steps.go-versions.outputs.penultimate }}/Go version ${{ env.officialPenultimateVersion }}/g" \ + README.md - name: Update go.mod and testservice/go.mod if: steps.update-go-versions.outcome == 'success'