Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 15 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -869,13 +869,26 @@ jobs:
&& (github.event_name != 'pull_request' || !github.event.pull_request.head.repo.fork) }}
permissions:
contents: read
pull-requests: read
runs-on: ubuntu-latest
env:
TARGET_OWNER: clockworklabs
TARGET_REPO: SpacetimeDBPrivate
steps:
# Skip the private dispatch entirely when only `docs/` is touched. The job
# itself still completes successfully so required-status-check gating is
# satisfied without spending private-runner time on a docs-only change.
- name: Detect non-docs changes
id: filter
uses: dorny/paths-filter@v3
with:
filters: |
non_docs:
- '!docs/**'

- id: dispatch
name: Trigger tests
if: steps.filter.outputs.non_docs == 'true'
uses: actions/github-script@v7
with:
github-token: ${{ secrets.SPACETIMEDB_PRIVATE_TOKEN }}
Expand Down Expand Up @@ -939,6 +952,7 @@ jobs:
core.setOutput('run_url', runUrl);

- name: Wait for Internal Tests to complete
if: steps.filter.outputs.non_docs == 'true'
uses: actions/github-script@v7
with:
github-token: ${{ secrets.SPACETIMEDB_PRIVATE_TOKEN }}
Expand Down Expand Up @@ -976,7 +990,7 @@ jobs:
}

- name: Cancel invoked run if workflow cancelled
if: ${{ cancelled() }}
if: ${{ cancelled() && steps.dispatch.outputs.run_id }}
uses: actions/github-script@v7
with:
github-token: ${{ secrets.SPACETIMEDB_PRIVATE_TOKEN }}
Expand Down
Loading