Skip to content

Commit

Permalink
substitute version
Browse files Browse the repository at this point in the history
  • Loading branch information
metelkin committed Jan 8, 2025
1 parent 6c3b0c5 commit d3d0f2c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/on-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -57,8 +57,8 @@ jobs:
git config user.name "GitHub Actions"
git config user.email "[email protected]"
mkdir -p Formula
cp -f ../build-homebrew/heta-compiler.rb Formula/ # copy the new formula and replace the old one
ls
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
git add .
git commit -m "Automated update from source repository based on release ${{ github.event.release.tag_name }}"
git push origin master
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
class HetaCompiler < Formula
desc "CLI for Heta Compiler"
homepage "https://hetalang.github.io/#/heta-compiler/"
url "https://github.com/hetalang/heta-compiler/releases/download/v0.9.2/heta-compiler-macos.tar.gz"
url "https://github.com/hetalang/heta-compiler/releases/download/$VERSION/heta-compiler-macos.tar.gz"
sha256 "a5ecd974c941d71c20ba71e37dc5e048ac42bb2a2e36147bc363bea315d25293"
license "Apache-2.0"

Expand Down

0 comments on commit d3d0f2c

Please sign in to comment.