From d079b7ef84d876922f8673c83cf340f8ff16f3f5 Mon Sep 17 00:00:00 2001 From: Gregor MacLennan Date: Sat, 27 Jun 2026 14:40:49 +0100 Subject: [PATCH 1/2] ci: notify downstream repos on release --- .github/workflows/release.yml | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 5c6e26c8e..38b2e02ec 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -62,3 +62,34 @@ jobs: build-command: | npm ci npm run doc + + # On a successful publish (optic publishes when its release PR merges into + # main), tell downstream repos to fast-track the bump of this package, rather + # than waiting for their daily Dependabot run. Receiver: digidem/comapeo-core-react-native. + notify-downstream: + needs: release + if: >- + needs.release.result == 'success' && + github.event_name == 'pull_request' && + github.event.pull_request.merged == true + runs-on: ubuntu-latest + strategy: + fail-fast: false + matrix: + downstream: + - owner: digidem + repo: comapeo-core-react-native + steps: + - uses: actions/create-github-app-token@v3 + id: token + with: + app-id: ${{ secrets.RELEASE_BOT_APP_ID }} + private-key: ${{ secrets.RELEASE_BOT_PRIVATE_KEY }} + owner: ${{ matrix.downstream.owner }} + repositories: ${{ matrix.downstream.repo }} + - env: + GH_TOKEN: ${{ steps.token.outputs.token }} + run: | + gh api repos/${{ matrix.downstream.owner }}/${{ matrix.downstream.repo }}/dispatches \ + -f event_type=first-party-release \ + -f 'client_payload[package]=@comapeo/core' From bcaa14b38ed96005a34aa6020f998ecc84f1bf03 Mon Sep 17 00:00:00 2001 From: Gregor MacLennan Date: Sat, 27 Jun 2026 14:57:27 +0100 Subject: [PATCH 2/2] ci: use vars.RELEASE_BOT_APP_ID (org variable, not secret) --- .github/workflows/release.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 38b2e02ec..d95a04da3 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -83,7 +83,7 @@ jobs: - uses: actions/create-github-app-token@v3 id: token with: - app-id: ${{ secrets.RELEASE_BOT_APP_ID }} + app-id: ${{ vars.RELEASE_BOT_APP_ID }} private-key: ${{ secrets.RELEASE_BOT_PRIVATE_KEY }} owner: ${{ matrix.downstream.owner }} repositories: ${{ matrix.downstream.repo }}