Skip to content

Commit 050ca24

Browse files
committed
Use GitHub Actions expression syntax for environment variables in Homebrew formula update
Replace shell-style variable interpolation with ${{env.VARIABLE}} syntax to ensure correct substitution of the latest tag and sha256 values.
1 parent 4dbf6ac commit 050ca24

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

.github/workflows/update-homebrew-formula.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -49,9 +49,9 @@ jobs:
4949
class Ch < Formula
5050
desc "Cheatsheet generator with markdown rendering"
5151
homepage "https://github.com/nicholascross/ch.sh"
52-
url "https://github.com/nicholascross/ch.sh/archive/refs/tags/\${LATEST_TAG}.tar.gz"
53-
sha256 "\${SHA256}"
54-
version "\${LATEST_TAG}"
52+
url "https://github.com/nicholascross/ch.sh/archive/refs/tags/${{env.LATEST_TAG}}.tar.gz"
53+
sha256 "${{env.SHA256}}"
54+
version "${{env.LATEST_TAG}}"
5555
5656
depends_on "glow"
5757
depends_on "nicholascross/promptly/promptly"

0 commit comments

Comments
 (0)