File tree Expand file tree Collapse file tree 3 files changed +13
-4
lines changed
Expand file tree Collapse file tree 3 files changed +13
-4
lines changed Original file line number Diff line number Diff line change @@ -26,27 +26,35 @@ jobs:
2626 update-brew :
2727 needs : publish-npm
2828 runs-on : ubuntu-latest
29- if : ${{ secrets.HOMEBREW_TAP_TOKEN != '' }}
3029 permissions :
3130 contents : read
31+ env :
32+ HOMEBREW_TAP_TOKEN : ${{ secrets.HOMEBREW_TAP_TOKEN }}
3233 steps :
34+ - name : Skip if no Homebrew token
35+ if : env.HOMEBREW_TAP_TOKEN == ''
36+ run : echo "HOMEBREW_TAP_TOKEN not set; skipping brew update."
3337 - name : Resolve version
38+ if : env.HOMEBREW_TAP_TOKEN != ''
3439 run : |
3540 TAG="${GITHUB_REF_NAME}"
3641 VERSION="${TAG#v}"
3742 echo "VERSION=$VERSION" >> "$GITHUB_ENV"
3843 - name : Download npm tarball
44+ if : env.HOMEBREW_TAP_TOKEN != ''
3945 run : |
4046 TARBALL_URL="https://registry.npmjs.org/@kfastov/tgcli/-/tgcli-${VERSION}.tgz"
4147 curl -fsSL "$TARBALL_URL" -o tgcli.tgz
4248 echo "TARBALL_URL=$TARBALL_URL" >> "$GITHUB_ENV"
4349 echo "SHA256=$(sha256sum tgcli.tgz | awk '{print $1}')" >> "$GITHUB_ENV"
4450 - uses : actions/checkout@v4
51+ if : env.HOMEBREW_TAP_TOKEN != ''
4552 with :
4653 repository : kfastov/homebrew-tap
4754 token : ${{ secrets.HOMEBREW_TAP_TOKEN }}
4855 path : homebrew-tap
4956 - name : Update formula
57+ if : env.HOMEBREW_TAP_TOKEN != ''
5058 env :
5159 FORMULA_PATH : homebrew-tap/Formula/tgcli.rb
5260 run : |
6573 path.write_text(text)
6674 PY
6775 - name : Commit and push
76+ if : env.HOMEBREW_TAP_TOKEN != ''
6877 run : |
6978 cd homebrew-tap
7079 git config user.name "github-actions[bot]"
Original file line number Diff line number Diff line change 11{
22 "name" : " @kfastov/tgcli" ,
3- "version" : " 2.0.3 " ,
3+ "version" : " 2.0.4 " ,
44 "type" : " module" ,
55 "description" : " Telegram CLI + MCP server powered by MTProto and the official MCP SDK" ,
66 "main" : " mcp-server.js" ,
You can’t perform that action at this time.
0 commit comments