From ca2e4132ef978dc8fbdf5ab4fddbe811a756fbea Mon Sep 17 00:00:00 2001 From: Gwyn Date: Sun, 24 Sep 2023 19:05:37 -0600 Subject: [PATCH] ChatGPT thinks this is the right way to sed. I think she's wrong. --- .github/workflows/go_release.yaml | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/.github/workflows/go_release.yaml b/.github/workflows/go_release.yaml index ff6e923..ddb4591 100644 --- a/.github/workflows/go_release.yaml +++ b/.github/workflows/go_release.yaml @@ -138,11 +138,12 @@ jobs: - name: 'Prepare a template file' run: | - sed -i 's/sha256.*/sha256: "'${{ steps.generate-sha256.outputs.sha256 }}'"/' Formula/templ.rb - sed -i 's/url.*/url: "'${{ env.SOURCE_CODE_URL }}'"/' Formula/templ.rb - - - - name: "Add new repo file" + sed -i 's|sha256.*|sha256: "'${{ steps.generate-sha256.outputs.sha256 }}'"|' Formula/templ.rb + sed -i 's|url.*|url: "'${{ env.SOURCE_CODE_URL }}'"|' Formula/templ.rb + + + + - name: "Add new repo file" run: | git add Formula/templ.rb git commit -m "Auto-Updater from templ: updating for ${{ needs.build-and-release-tag.outputs.version_tag }}"