-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ci: automatically update homebrew tap on release
Use a workflow dispatch to update the version in the homebrew tap (https://github.com/derlin/homebrew-bitdowntoc) upon release. This is made possible thanks to a manually triggered workflow on the tap repository.
- Loading branch information
Showing
3 changed files
with
37 additions
and
2 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 |
---|---|---|
|
@@ -3,8 +3,7 @@ name: Build | |
on: | ||
push: | ||
branches: | ||
- '**' # all branches | ||
- '!main' # except main | ||
- 'asdf' | ||
|
||
jobs: | ||
build: | ||
|
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
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 |
---|---|---|
@@ -0,0 +1,20 @@ | ||
name: test | ||
on: | ||
push: | ||
branches: | ||
- update-homebrew | ||
|
||
jobs: | ||
update_homebrew: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: trigger homebrew update | ||
run: | | ||
curl -L \ | ||
--fail-with-body \ | ||
-X POST \ | ||
-H "Accept: application/vnd.github+json" \ | ||
-H "Authorization: Bearer ${{ secrets.HOMEBREW_PAT }}" \ | ||
-H "X-GitHub-Api-Version: 2022-11-28" \ | ||
https://api.github.com/repos/derlin/homebrew-bitdowntoc/actions/workflows/${{ secrets.HOMEBREW_WORKFLOW_ID }}/dispatches \ | ||
-d '{"ref":"main","inputs":{}}' |