chore(release): remove manual homebrew cask bump

This commit is contained in:
t8y2 2026-06-01 16:51:57 +08:00
parent fb7d9dc847
commit 0a2fc8af34
1 changed files with 0 additions and 42 deletions

View File

@ -6,11 +6,6 @@ on:
tag:
description: 'Release tag (e.g. v0.3.10)'
required: true
open_homebrew_pr:
description: 'Open a Homebrew/homebrew-cask bump PR'
required: false
type: boolean
default: false
permissions:
contents: write
@ -262,43 +257,6 @@ jobs:
--latest
echo "::notice::Release ${TAG} promoted from prerelease to latest release"
homebrew-cask-pr:
name: Open Homebrew Cask PR
needs: [promote-release]
if: ${{ github.event.inputs.open_homebrew_pr == 'true' }}
runs-on: macos-latest
steps:
- name: Extract version from tag
id: version
run: |
TAG="${{ github.event.inputs.tag }}"
TAG="$(echo "${TAG}" | xargs)"
VERSION="${TAG#v}"
if [[ ! "${VERSION}" =~ ^[0-9]+\.[0-9]+\.[0-9]+ ]]; then
echo "::error::Tag '${TAG}' does not look like a semver version."
exit 1
fi
echo "version=${VERSION}" >> "$GITHUB_OUTPUT"
- name: Configure Git
run: |
git config --global user.name "github-actions[bot]"
git config --global user.email "github-actions[bot]@users.noreply.github.com"
- name: Open Homebrew cask bump PR
env:
HOMEBREW_GITHUB_API_TOKEN: ${{ secrets.HOMEBREW_GITHUB_API_TOKEN }}
GH_TOKEN: ${{ secrets.HOMEBREW_GITHUB_API_TOKEN }}
run: |
if [[ -z "${HOMEBREW_GITHUB_API_TOKEN}" ]]; then
echo "::error::Set HOMEBREW_GITHUB_API_TOKEN to a GitHub token that can fork and push to Homebrew/homebrew-cask."
exit 1
fi
brew update
brew tap homebrew/cask
brew bump-cask-pr dbx --version "${{ steps.version.outputs.version }}" --no-browse
notify-qq:
name: QQ Notify
needs: [promote-release]