Skip to content

Commit b65b59d

Browse files
mojavelinuxsjohnr
authored andcommitted
consolidate docs CI workflows in main branch
- repurpose Deploy Docs as scheduler - repurpose Rebuild Search Index as scheduler
1 parent c261052 commit b65b59d

File tree

4 files changed

+32
-48
lines changed

4 files changed

+32
-48
lines changed

.github/workflows/deploy-docs.yml

Lines changed: 17 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,22 @@
11
name: Deploy Docs
22
on:
3+
repository_dispatch:
4+
types: request-build-reference # legacy
5+
schedule:
6+
- cron: '0 10 * * *' # Once per day at 10am UTC
37
workflow_dispatch:
8+
permissions: read-all
49
jobs:
5-
register:
6-
if: false
10+
build:
11+
runs-on: ubuntu-latest
12+
if: github.repository_owner == 'spring-projects'
713
steps:
8-
- run: echo Workflow registered!
14+
- name: Checkout
15+
uses: actions/checkout@v2
16+
with:
17+
ref: docs-build
18+
fetch-depth: 1
19+
- name: Dispatch
20+
run: gh workflow run --ref $(git rev-parse --abbrev-ref HEAD) deploy-docs.yml
21+
env:
22+
GH_TOKEN: ${{ secrets.GH_ACTIONS_REPO_TOKEN }}
Lines changed: 15 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,20 @@
11
name: Rebuild Search Index
22
on:
3+
schedule:
4+
- cron: '0 10 * * *' # Once per day at 10am UTC
35
workflow_dispatch:
6+
permissions: read-all
47
jobs:
5-
register:
6-
if: false
8+
build:
9+
runs-on: ubuntu-latest
10+
if: github.repository_owner == 'spring-projects'
711
steps:
8-
- run: echo Workflow registered!
12+
- name: Checkout
13+
uses: actions/checkout@v2
14+
with:
15+
ref: docs-build
16+
fetch-depth: 1
17+
- name: Dispatch
18+
run: gh workflow run --ref $(git rev-parse --abbrev-ref HEAD) rebuild-search-index.yml
19+
env:
20+
GH_TOKEN: ${{ secrets.GH_ACTIONS_REPO_TOKEN }}

.github/workflows/trigger-deploy-docs.yml

Lines changed: 0 additions & 22 deletions
This file was deleted.

.github/workflows/trigger-rebuild-search-index.yml

Lines changed: 0 additions & 20 deletions
This file was deleted.

0 commit comments

Comments
 (0)