From 23951fc9f351e15c34b43093a55808aed417f398 Mon Sep 17 00:00:00 2001 From: Johnny Huynh <27847622+johnnyhuy@users.noreply.github.com> Date: Sat, 15 Aug 2026 10:16:10 +1000 Subject: [PATCH] fix(ci): validate release PRs Release Please uses GITHUB_TOKEN, so its pull requests do not emit normal pull_request workflow events. Explicitly dispatch CI on the generated branch so protected status checks can complete. Co-authored-by: opencode-agent[bot] <219766164+opencode-agent[bot]@users.noreply.github.com> --- .github/workflows/ci.yml | 1 + .github/workflows/release-please.yml | 9 ++++++++- 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 3782829..f8f4474 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -1,6 +1,7 @@ name: CI on: + workflow_dispatch: pull_request: branches: [main] push: diff --git a/.github/workflows/release-please.yml b/.github/workflows/release-please.yml index 1aa4502..89cf664 100644 --- a/.github/workflows/release-please.yml +++ b/.github/workflows/release-please.yml @@ -5,6 +5,7 @@ on: branches: [main] permissions: + actions: write contents: write pull-requests: write @@ -12,8 +13,14 @@ jobs: release-please: runs-on: ubuntu-latest steps: - - uses: googleapis/release-please-action@45996ed1f6d02564a971a2fa1b5860e934307cf7 # v5.0.0 + - id: release + uses: googleapis/release-please-action@45996ed1f6d02564a971a2fa1b5860e934307cf7 # v5.0.0 with: config-file: release-please-config.json manifest-file: .release-please-manifest.json target-branch: main + - name: Run CI for release PR + if: ${{ steps.release.outputs.prs_created == 'true' }} + env: + GH_TOKEN: ${{ github.token }} + run: gh workflow run ci.yml --ref release-please--branches--main