From d0d96831b1cbbae1585acc76f5cfc484311d75ef Mon Sep 17 00:00:00 2001 From: Taras Pashkevych Date: Tue, 1 Sep 2026 23:27:34 +0200 Subject: [PATCH 1/2] fix(release): open PR for homebrew tap update instead of pushing to protected main --- .github/workflows/release.yml | 22 +++++++++++++++++++++- 1 file changed, 21 insertions(+), 1 deletion(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index f249cb7..820f17c 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -118,6 +118,26 @@ jobs: cd /tmp/tap git config user.name "github-actions[bot]" git config user.email "github-actions[bot]@users.noreply.github.com" + + BRANCH="update-dualentry-$VERSION" + git checkout -b "$BRANCH" git add Formula/dualentry.rb git commit -m "Update dualentry to $VERSION" - git push + git push origin "$BRANCH" + + # main is a protected branch on the tap repo (PR required), so push a + # branch and PR it instead of pushing straight to main. + export GH_TOKEN="$TAP_TOKEN" + PR_URL=$(gh pr create --repo dualentry/homebrew-tap \ + --title "Update dualentry to $VERSION" \ + --body "Automated formula update for dualentry $VERSION." \ + --head "$BRANCH" --base main) + echo "Opened $PR_URL" + + if gh pr merge --repo dualentry/homebrew-tap "$BRANCH" --squash --delete-branch; then + echo "Merged $PR_URL" + elif gh pr merge --repo dualentry/homebrew-tap "$BRANCH" --auto --squash --delete-branch; then + echo "Enabled auto-merge for $PR_URL" + else + echo "::warning::Could not merge or enable auto-merge for $PR_URL — merge it manually." + fi From 07c72ee4d309b3a005fe3d1fc10786295c09b530 Mon Sep 17 00:00:00 2001 From: Taras Pashkevych Date: Tue, 1 Sep 2026 23:33:06 +0200 Subject: [PATCH 2/2] chore: release v0.1.18 --- CHANGELOG.md | 3 +++ pyproject.toml | 2 +- src/dualentry_cli/__init__.py | 2 +- uv.lock | 2 +- 4 files changed, 6 insertions(+), 3 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 0f23241..e0634a3 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,8 @@ # Changelog +## [0.1.18] - 2026-09-01 + + ## [0.1.17] - 2026-04-15 diff --git a/pyproject.toml b/pyproject.toml index 30a6ee9..ff98171 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [project] name = "dualentry-cli" -version = "0.1.17" +version = "0.1.18" description = "DualEntry accounting CLI" requires-python = ">=3.11" dependencies = [ diff --git a/src/dualentry_cli/__init__.py b/src/dualentry_cli/__init__.py index e25216a..c42a2fc 100644 --- a/src/dualentry_cli/__init__.py +++ b/src/dualentry_cli/__init__.py @@ -1,4 +1,4 @@ """DualEntry CLI - command-line interface for DualEntry accounting.""" -__version__ = "0.1.17" +__version__ = "0.1.18" USER_AGENT = f"dualentry-cli/{__version__}" diff --git a/uv.lock b/uv.lock index 2564241..dd3cba5 100644 --- a/uv.lock +++ b/uv.lock @@ -310,7 +310,7 @@ wheels = [ [[package]] name = "dualentry-cli" -version = "0.1.17" +version = "0.1.18" source = { editable = "." } dependencies = [ { name = "httpx" },