@@ -129,32 +129,13 @@ jobs:
129129 files : |
130130 dist/VPNBypass-${{ steps.version.outputs.version }}.dmg
131131
132- - name : Update Homebrew Cask
133- env :
134- HOMEBREW_TAP_TOKEN : ${{ secrets.HOMEBREW_TAP_TOKEN }}
132+ - name : Homebrew Update Instructions
135133 run : |
136- if [ -z "$HOMEBREW_TAP_TOKEN" ]; then
137- echo "⚠️ HOMEBREW_TAP_TOKEN not set, skipping Homebrew update"
138- echo "To enable automatic Homebrew updates, add a PAT with repo scope as HOMEBREW_TAP_TOKEN secret"
139- exit 0
140- fi
141-
142- VERSION="${{ steps.version.outputs.version }}"
143- SHA256="${{ steps.sha.outputs.sha256 }}"
144-
145- # Clone homebrew tap
146- git clone "https://x-access-token:${HOMEBREW_TAP_TOKEN}@github.com/GeiserX/homebrew-vpn-bypass.git" homebrew-tap
147- cd homebrew-tap
148-
149- # Update cask file
150- sed -i '' "s/version \".*\"/version \"$VERSION\"/" Casks/vpn-bypass.rb
151- sed -i '' "s/sha256 \".*\"/sha256 \"$SHA256\"/" Casks/vpn-bypass.rb
152-
153- # Commit and push
154- git config user.name "github-actions[bot]"
155- git config user.email "github-actions[bot]@users.noreply.github.com"
156- git add Casks/vpn-bypass.rb
157- git commit -m "Update vpn-bypass to v$VERSION"
158- git push
159-
160- echo "✅ Homebrew cask updated to v$VERSION"
134+ echo "## 🍺 Homebrew Cask Update" >> $GITHUB_STEP_SUMMARY
135+ echo "" >> $GITHUB_STEP_SUMMARY
136+ echo "The homebrew-vpn-bypass repo will auto-update within 15 minutes," >> $GITHUB_STEP_SUMMARY
137+ echo "or manually trigger the workflow at:" >> $GITHUB_STEP_SUMMARY
138+ echo "https://github.com/GeiserX/homebrew-vpn-bypass/actions/workflows/update-cask.yml" >> $GITHUB_STEP_SUMMARY
139+ echo "" >> $GITHUB_STEP_SUMMARY
140+ echo "**Version:** ${{ steps.version.outputs.version }}" >> $GITHUB_STEP_SUMMARY
141+ echo "**SHA256:** ${{ steps.sha.outputs.sha256 }}" >> $GITHUB_STEP_SUMMARY
0 commit comments