Skip to content

Commit

Permalink
ChatGPT thinks this is the right way to sed. I think she's wrong.
Browse files Browse the repository at this point in the history
  • Loading branch information
gwynforthewyn committed Sep 25, 2023
1 parent 51d7b36 commit ca2e413
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions .github/workflows/go_release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}"
Expand Down

0 comments on commit ca2e413

Please sign in to comment.