-
-
Notifications
You must be signed in to change notification settings - Fork 243
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Florian Wartner
committed
Jun 23, 2021
1 parent
be67d3d
commit c454673
Showing
1 changed file
with
17 additions
and
14 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,21 +5,24 @@ on: | |
tags: | ||
- "*" | ||
|
||
workflow_dispatch: | ||
|
||
jobs: | ||
homebrew-releaser: | ||
homebrew: | ||
name: Bump Homebrew formula | ||
runs-on: ubuntu-latest | ||
name: homebrew-releaser | ||
steps: | ||
- name: Release my project to my Homebrew tap | ||
uses: Justintime50/homebrew-releaser@v1 | ||
- name: Extract version | ||
id: extract-version | ||
run: | | ||
printf "::set-output name=%s::%s\n" tag-name "${GITHUB_REF#refs/tags/}" | ||
- uses: mislav/bump-homebrew-formula-action@v1 | ||
if: "!contains(github.ref, '-')" | ||
with: | ||
homebrew_owner: fwartner | ||
homebrew_tap: homebrew-tap | ||
formula_folder: Formula | ||
github_token: ${{ secrets.HOMEBREW_TAP_GITHUB_TOKEN }} | ||
commit_owner: "Florian Wartner" | ||
commit_email: [email protected] | ||
install: 'bin.install "mac-cleanup"' | ||
test: 'assert_match "A Mac Cleanup Utility by fwartner", shell_output("#{bin}/mac-cleanup -h", 2)' | ||
formula-name: mac-cleanup | ||
formula-path: Formula/mac-cleanup.rb | ||
homebrew-tap: fwartner/homebrew-tap | ||
base-branch: main | ||
commit-message: | | ||
{{formulaName}} {{version}} | ||
env: | ||
COMMITTER_TOKEN: ${{ secrets.HOMEBREW_TAP_GITHUB_TOKEN }} | ||
GITHUB_TOKEN: ${{ secrets.HOMEBREW_TAP_GITHUB_TOKEN }} |