Skip to content

Commit

Permalink
Automatically create PRs to bump the Homebrew version
Browse files Browse the repository at this point in the history
  • Loading branch information
MWin123 committed May 28, 2023
1 parent d15e3db commit d35d4a7
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 25 deletions.
25 changes: 0 additions & 25 deletions .github/workflows/bump.yaml

This file was deleted.

21 changes: 21 additions & 0 deletions .github/workflows/gradle.yaml
Expand Up @@ -121,3 +121,24 @@ jobs:
matrix.os == 'windows-2022'
with:
files: build/jpackage/*.exe
- name: Extract version
id: extract-version
if: startsWith(github.ref, 'refs/tags/')
run: |
TAG_NAME=${GITHUB_REF#refs/tags/}
echo "tag-name=${TAG_NAME:1}" >> $GITHUB_OUTPUT
- name: Bump Homebrew cask version
uses: MWin123/bump-homebrew-formula-action@v0.3.0
if: |
startsWith(github.ref, 'refs/tags/') &&
matrix.os == 'macos-12'
with:
formula-name: homebrew-esque
formula-path: Casks/kafkaesque.rb
homebrew-tap: patschuh/homebrew-esque
base-branch: main
create-pullrequest: true
tag-name: ${{ steps.extract-version.outputs.tag-name }}
download-url: https://github.com/patschuh/KafkaEsque/releases/download/v${{ steps.extract-version.outputs.tag-name }}/kafkaesque-${{ steps.extract-version.outputs.tag-name }}.dmg
env:
COMMITTER_TOKEN: ${{ secrets.COMMITTER_TOKEN }}

0 comments on commit d35d4a7

Please sign in to comment.