diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 0df5028..5907070 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -86,3 +86,20 @@ jobs: - name: Run tests run: ./scripts/test + + trigger-monorepo-tests: + timeout-minutes: 5 + name: trigger monorepo tests + runs-on: ubuntu-latest + # Only run for PRs in the public repo + # Note: No 'needs: build' because the tarball is uploaded by Stainless's internal CI + # (stainless-sdks/flowglad-typescript), not by this repo's build job + if: github.repository == 'flowglad/flowglad-node' && github.event_name == 'pull_request' + steps: + - name: Trigger flowglad monorepo SDK tests + uses: peter-evans/repository-dispatch@ff45666b9427631e3450c54a1bcbee4d9ff4d7c0 # v3.0.0 + with: + token: ${{ secrets.MONOREPO_DISPATCH_TOKEN }} + repository: flowglad/flowglad + event-type: test-stainless-sdk + client-payload: '{"commit_hash": "${{ github.event.pull_request.head.sha }}"}'