Skip to content

Commit

Permalink
Add workflow step to trigger homebrew update
Browse files Browse the repository at this point in the history
  • Loading branch information
nat-n committed Oct 1, 2023
1 parent caf7ba8 commit 185ae1d
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 1 deletion.
13 changes: 13 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -83,3 +83,16 @@ jobs:
run: poetry publish -n
env:
POETRY_PYPI_TOKEN_PYPI: ${{ secrets.pypi }}

- name: Update homebrew formula
# if: github.event_name == 'push' && startsWith(github.event.ref, 'refs/tags')
env:
UPDATE_HOMEBREW_WORKFLOW_PAT: ${{ secrets.homebrew_pat }}
run: >
curl -L
-X POST
-H "Accept: application/vnd.github+json"
-H "Authorization: Bearer ${UPDATE_HOMEBREW_WORKFLOW_PAT}"
-H "X-GitHub-Api-Version: 2022-11-28"
https://api.github.com/repos/nat-n/homebrew-poethepoet/actions/workflows/71211730/dispatches
-d '{"ref":"main", "inputs":{}}'
2 changes: 1 addition & 1 deletion poethepoet/ui.py
Original file line number Diff line number Diff line change
Expand Up @@ -257,7 +257,7 @@ def print_error(self, error: Union[PoeException, ExecutionError]):

def print_version(self):
if self.verbosity >= 0:
result = f"Poe the poet - version: <em>{__version__}</em>\n"
result = f"Poe the Poet - version: <em>{__version__}</em>\n"
else:
result = f"{__version__}\n"
self._print(result)
Expand Down

0 comments on commit 185ae1d

Please sign in to comment.