Skip to content

Commit

Permalink
ChatGPT has a wild speculation about weird interpolation issues. I
Browse files Browse the repository at this point in the history
love her, but she's losing it.

Her solution is to use an env var first to resolve from the github
steps and then interpolate the shell var. Wild.
  • Loading branch information
gwynforthewyn committed Sep 25, 2023
1 parent 84737c4 commit e72dfb2
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions .github/workflows/go_release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -138,8 +138,10 @@ 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
SHA_VALUE=${{ steps.generate-sha256.outputs.sha256 }}
URL_VALUE=${{ env.SOURCE_CODE_URL }}
sed -i "s|sha256.*|sha256: \"$SHA_VALUE\"|" Formula/templ.rb
sed -i "s|url.*|url: \"$URL_VALUE\"|" Formula/templ.rb
- name: "Add new repo file"
Expand Down

0 comments on commit e72dfb2

Please sign in to comment.