Skip to content

Commit

Permalink
sha substitution
Browse files Browse the repository at this point in the history
  • Loading branch information
metelkin committed Jan 8, 2025
1 parent d3d0f2c commit 166de59
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion .github/workflows/on-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,9 @@ jobs:
git config user.email "[email protected]"
mkdir -p Formula
cp -f ../build-homebrew/heta-compiler.template.rb Formula/heta-compiler.rb # copy the new formula and replace the old one
sed -i '' "s|\\\$VERSION|${{ github.event.release.tag_name }}|" Formula/heta-compiler.rb
sed -i "s|\$VERSION|${{ github.event.release.tag_name }}|" Formula/heta-compiler.rb
SHA=$(sha256sum ../dist/heta-compiler-macos.tar.gz | awk '{print $1}')
sed -i "s|\$SHA256|$SHA|" Formula/heta-compiler.rb
git add .
git commit -m "Automated update from source repository based on release ${{ github.event.release.tag_name }}"
git push origin master
Expand Down

0 comments on commit 166de59

Please sign in to comment.