-
-
Notifications
You must be signed in to change notification settings - Fork 221
33 lines (27 loc) · 1.04 KB
/
homebrew-release.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
name: Homebrew release
on:
release:
types: [published]
workflow_dispatch:
env:
BREW_TAP: Bionus/imgbrd-grabber
BREW_CASK: imgbrd-grabber
HOMEBREW_GIT_NAME: Bionus
HOMEBREW_GIT_EMAIL: [email protected]
HOMEBREW_GITHUB_API_TOKEN: ${{ secrets.HOMEBREW_TOKEN }}
jobs:
homebrew-release:
name: Homebrew release
runs-on: macos-latest
steps:
- name: Tap repository
run: brew tap ${{ env.BREW_TAP }} "https://Bionus:${{ secrets.HOMEBREW_TOKEN }}@github.com/Bionus/homebrew-imgbrd-grabber.git"
- name: Check new version
id: version
run: |
VERSION=$(brew livecheck --cask --quiet --newer-only --full-name --json --tap=${{ env.BREW_TAP }} ${{ env.BREW_CASK }} | jq -r ".[0].version.latest//empty")
echo "Version $VERSION"
echo "version=$VERSION" >> $GITHUB_OUTPUT
- name: Create bump PR
if: steps.version.outputs.version != ''
run: brew bump-cask-pr --no-fork --no-audit --no-browse --version=${{ steps.version.outputs.version }} ${{ env.BREW_CASK }}