chore(release): remove manual homebrew cask bump
This commit is contained in:
1 parent
fb7d9dc847
commit
0a2fc8af34
1 file changed
-42
@@ -6,11 +6,6 @@ on:
|
|||||||
tag:
|
tag:
|
||||||
description: 'Release tag (e.g. v0.3.10)'
|
description: 'Release tag (e.g. v0.3.10)'
|
||||||
required: true
|
required: true
|
||||||
open_homebrew_pr:
|
|
||||||
description: 'Open a Homebrew/homebrew-cask bump PR'
|
|
||||||
required: false
|
|
||||||
type: boolean
|
|
||||||
default: false
|
|
||||||
|
|
||||||
permissions:
|
permissions:
|
||||||
contents: write
|
contents: write
|
||||||
@@ -262,43 +257,6 @@ jobs:
|
|||||||
--latest
|
--latest
|
||||||
echo "::notice::Release ${TAG} promoted from prerelease to latest release"
|
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:
|
notify-qq:
|
||||||
name: QQ Notify
|
name: QQ Notify
|
||||||
needs: [promote-release]
|
needs: [promote-release]
|
||||||
|
|||||||
Reference in new issue
Block a user