File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -325,35 +325,11 @@ jobs:
325325 name : DevHub Build Validation
326326 needs : detect-changes
327327 if : needs.detect-changes.outputs.docs == 'true'
328- runs-on :
329- group : databricks-protected-runner-group
330- labels : linux-ubuntu-latest
331-
332- steps :
333- - uses : actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0
334-
335- - name : Setup JFrog npm
336- uses : ./.github/actions/setup-jfrog-npm
337-
338- - name : Clone DevHub
339- run : git clone --depth 1 https://github.com/databricks/devhub.git /tmp/devhub
340-
341- - uses : actions/setup-node@48b55a011bda9f5d6aeb4c2d9c7362e8dae4041e # v6.4.0
342- with :
343- node-version : 22
344-
345- - name : Install DevHub dependencies
346- working-directory : /tmp/devhub
347- run : npm install
348-
349- - name : Sync AppKit docs from PR branch
350- working-directory : /tmp/devhub
351- env :
352- APPKIT_REMOTE : ${{ github.event.pull_request.head.repo.clone_url || format('https://github.com/{0}.git', github.repository) }}
353- APPKIT_BRANCH : ${{ github.head_ref || github.ref_name }}
354- run : node scripts/sync-appkit-docs.mjs --force
355-
356- - name : Build DevHub
357- working-directory : /tmp/devhub
358- run : npm run build
328+ permissions :
329+ contents : read
330+ id-token : write
331+ uses : ./.github/workflows/devhub-build.yml
332+ with :
333+ appkit-remote : ${{ github.event.pull_request.head.repo.clone_url || format('https://github.com/{0}.git', github.repository) }}
334+ appkit-ref : ${{ github.head_ref || github.ref_name }}
359335
Original file line number Diff line number Diff line change 1+ name : DevHub Build
2+
3+ # Builds DevHub with AppKit docs synced from the given ref.
4+ # Called by ci.yml (per-PR) and devhub-nightly.yml.
5+
6+ on :
7+ workflow_call :
8+ inputs :
9+ appkit-remote :
10+ description : " Git URL to sync AppKit docs from"
11+ type : string
12+ default : " https://github.com/databricks/appkit.git"
13+ appkit-ref :
14+ description : " AppKit branch/ref to sync docs from"
15+ type : string
16+ default : " main"
17+
18+ permissions :
19+ contents : read
20+ id-token : write # required for the JFrog OIDC token exchange in setup-jfrog-npm
21+
22+ jobs :
23+ build :
24+ name : Build DevHub
25+ runs-on :
26+ group : databricks-protected-runner-group
27+ labels : linux-ubuntu-latest
28+
29+ steps :
30+ - uses : actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0
31+
32+ - name : Setup JFrog npm
33+ uses : ./.github/actions/setup-jfrog-npm
34+
35+ - name : Clone DevHub
36+ run : git clone --depth 1 https://github.com/databricks/devhub.git /tmp/devhub
37+
38+ - uses : pnpm/action-setup@0ebf47130e4866e96fce0953f49152a61190b271 # v6.0.9
39+
40+ - uses : actions/setup-node@48b55a011bda9f5d6aeb4c2d9c7362e8dae4041e # v6.4.0
41+ with :
42+ node-version : 22
43+
44+ - name : Install DevHub dependencies
45+ working-directory : /tmp/devhub
46+ run : pnpm install --frozen-lockfile
47+
48+ - name : Sync AppKit docs
49+ working-directory : /tmp/devhub
50+ env :
51+ APPKIT_REMOTE : ${{ inputs.appkit-remote }}
52+ APPKIT_BRANCH : ${{ inputs.appkit-ref }}
53+ run : node scripts/sync-appkit-docs.mjs --force
54+
55+ - name : Build DevHub
56+ working-directory : /tmp/devhub
57+ run : pnpm build
Original file line number Diff line number Diff line change 1+ name : DevHub Nightly Build
2+
3+ # Daily check that AppKit main docs still build inside DevHub, catching DevHub-side
4+ # breaks that land between docs PRs. Failures surface via GitHub's scheduled-failure email.
5+
6+ on :
7+ schedule :
8+ - cron : " 0 6 * * *" # 06:00 UTC daily
9+ workflow_dispatch :
10+
11+ permissions :
12+ contents : read
13+ id-token : write
14+
15+ jobs :
16+ devhub-build :
17+ # Defaults build databricks/appkit main against DevHub.
18+ uses : ./.github/workflows/devhub-build.yml
Original file line number Diff line number Diff line change @@ -14,3 +14,5 @@ coverage
1414
1515.claude /scheduled_tasks.lock
1616internal
17+
18+ .isaac /
You can’t perform that action at this time.
0 commit comments