File tree Expand file tree Collapse file tree 4 files changed +32
-48
lines changed Expand file tree Collapse file tree 4 files changed +32
-48
lines changed Original file line number Diff line number Diff line change 1
1
name : Deploy Docs
2
2
on :
3
+ repository_dispatch :
4
+ types : request-build-reference # legacy
5
+ schedule :
6
+ - cron : ' 0 10 * * *' # Once per day at 10am UTC
3
7
workflow_dispatch :
8
+ permissions : read-all
4
9
jobs :
5
- register :
6
- if : false
10
+ build :
11
+ runs-on : ubuntu-latest
12
+ if : github.repository_owner == 'spring-projects'
7
13
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 }}
Original file line number Diff line number Diff line change 1
1
name : Rebuild Search Index
2
2
on :
3
+ schedule :
4
+ - cron : ' 0 10 * * *' # Once per day at 10am UTC
3
5
workflow_dispatch :
6
+ permissions : read-all
4
7
jobs :
5
- register :
6
- if : false
8
+ build :
9
+ runs-on : ubuntu-latest
10
+ if : github.repository_owner == 'spring-projects'
7
11
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 }}
Load Diff This file was deleted.
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments