From 0a2fc8af34d4e84b18484853edb763e9b95689db Mon Sep 17 00:00:00 2001 From: t8y2 <1156263951@qq.com> Date: Mon, 1 Jun 2026 16:51:57 +0800 Subject: [PATCH] chore(release): remove manual homebrew cask bump --- .github/workflows/publish-packages.yml | 42 -------------------------- 1 file changed, 42 deletions(-) diff --git a/.github/workflows/publish-packages.yml b/.github/workflows/publish-packages.yml index 0294aef5e..5c30cdcb6 100644 --- a/.github/workflows/publish-packages.yml +++ b/.github/workflows/publish-packages.yml @@ -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]