File tree Expand file tree Collapse file tree 3 files changed +41
-22
lines changed
Expand file tree Collapse file tree 3 files changed +41
-22
lines changed Original file line number Diff line number Diff line change 1+ name : REST CI
2+
3+ on :
4+ workflow_call :
5+
6+ jobs :
7+ rest-ci :
8+ runs-on : ubuntu-latest
9+
10+ steps :
11+ # For easy access to lookup dispatched CI job.
12+ - name : Print URL for REST CI actions
13+ run : echo https://github.com/TileDB-Inc/TileDB-Internal/actions
14+
15+ # If this workflow fails on the remote repository, this CI job will also fail.
16+ - name : Workflow dispatch to REST CI
17+ id : trigger-step
18+ uses : the-actions-org/workflow-dispatch@v4
19+ env :
20+ TILEDB_REST_CI_PAT : secrets.TILEDB_REST_CI_PAT
21+ if : env.TILEDB_REST_CI_PAT != null
22+ with :
23+ repo : TileDB-Inc/TileDB-Internal
24+ # Trigger workflow on TileDB-Internal checked out at this ref.
25+ ref : " main"
26+ workflow : rest-ci.yml
27+ token : ${{ secrets.TILEDB_REST_CI_PAT }}
28+ # The references set here will be passed to REST CI to checkout for testing.
29+ # These can be temporarily modified if you want to test your changes against a specific branch.
30+ # github.head_ref will only be set for PRs, so fallback to github.ref_name if triggered via push event.
31+ inputs : |
32+ {
33+ "tiledb_ref": "${{ github.event.inputs.ref || github.head_ref || github.ref_name }}",
34+ "tiledb_cloud_rest_ref": "master",
35+ "tiledb_server_ref": "main"
36+ }
37+ wait-for-completion-timeout : 120m
Original file line number Diff line number Diff line change @@ -133,6 +133,10 @@ jobs:
133133 ci_docker :
134134 uses : ./.github/workflows/build-dockerfile.yml
135135
136+ ci_rest :
137+ uses : ./.github/workflows/ci-rest.yml
138+ secrets : inherit
139+
136140 # dummy job for branch protection check
137141 full_ci_passed :
138142 needs : [
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments