Skip to content

Commit

Permalink
ci: fix sed command in check-go-versions.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
cwaldren-ld committed Mar 26, 2024
1 parent b450345 commit 1026c6a
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions .github/workflows/check-go-versions.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Expand Down

0 comments on commit 1026c6a

Please sign in to comment.