From d3c60d5219a5bc2403f457b3dd396f7c6d8704b8 Mon Sep 17 00:00:00 2001 From: Andrew Wagner Date: Mon, 9 Nov 2026 11:50:18 -0500 Subject: [PATCH 1/2] ci(release): notify the docs repo so CLI releases get release notes Add a notify-docs job that sends the same `release` repository_dispatch to dualentry/docs that backend and frontend send through release-cycle, with repo `dualentry-cli` and the release tag. It runs after the binaries upload, skips pre-releases, and can't fail the release. --- .github/workflows/release.yml | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 166f66c..066c463 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -154,3 +154,34 @@ jobs: echo "::warning::Could not merge or enable auto-merge for $PR_URL — merge it manually." fi + # Ask the docs repo to write release notes for this version, the same + # repository_dispatch that backend and frontend send through release-cycle. + # Runs once the binaries are uploaded; a failure here doesn't fail the release. + notify-docs: + needs: upload + if: ${{ !github.event.release.prerelease }} + runs-on: ubuntu-latest + continue-on-error: true + permissions: {} + steps: + - name: Create GitHub App token + id: app-token + uses: actions/create-github-app-token@bcd2ba49218906704ab6c1aa796996da409d3eb1 # v3.2.0 + with: + client-id: ${{ vars.DUALENTRY_CI_APP_CLIENT_ID }} + private-key: ${{ secrets.DUALENTRY_CI_APP_PRIVATE_KEY }} + owner: ${{ github.repository_owner }} + repositories: docs + permission-contents: write + + - name: Send release to dualentry/docs + env: + GH_TOKEN: ${{ steps.app-token.outputs.token }} + RELEASE_TAG: ${{ github.event.release.tag_name }} + run: | + set -euo pipefail + gh api --method POST repos/dualentry/docs/dispatches \ + -f event_type=release \ + -f 'client_payload[repo]=dualentry-cli' \ + -f "client_payload[release_tag]=$RELEASE_TAG" + echo "Sent release $RELEASE_TAG to dualentry/docs" From f7235d8e27c54954a6b4cb7de541edd5a1b56cfb Mon Sep 17 00:00:00 2001 From: Andrew Wagner Date: Mon, 9 Nov 2026 15:16:15 -0500 Subject: [PATCH 2/2] ci(release): drop a comment that repeats the notify-docs job settings --- .github/workflows/release.yml | 1 - 1 file changed, 1 deletion(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 066c463..2deeef2 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -156,7 +156,6 @@ jobs: # Ask the docs repo to write release notes for this version, the same # repository_dispatch that backend and frontend send through release-cycle. - # Runs once the binaries are uploaded; a failure here doesn't fail the release. notify-docs: needs: upload if: ${{ !github.event.release.prerelease }}