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 0c75767
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 2 deletions.
10 changes: 10 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -83,3 +83,13 @@ 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')
run: >
curl -L -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/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
2 changes: 1 addition & 1 deletion tests/test_cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ def test_call_hidden_task(run_poe):
def test_version_option(run_poe):
result = run_poe("--version")
assert result.code == 0, "Expected zero result"
assert result.capture.strip() == f"Poe the poet - version: {__version__}"
assert result.capture.strip() == f"Poe the Poet - version: {__version__}"
assert result.stdout == ""
assert result.stderr == ""

Expand Down

0 comments on commit 0c75767

Please sign in to comment.