mirror of
https://github.com/spring-projects/spring-security.git
synced 2025-06-01 09:42:13 +00:00
consolidate docs CI workflows in main branch
- repurpose Deploy Docs as scheduler - repurpose Rebuild Search Index as scheduler
This commit is contained in:
parent
c261052063
commit
b65b59d46c
20
.github/workflows/deploy-docs.yml
vendored
20
.github/workflows/deploy-docs.yml
vendored
@ -1,8 +1,22 @@
|
|||||||
name: Deploy Docs
|
name: Deploy Docs
|
||||||
on:
|
on:
|
||||||
|
repository_dispatch:
|
||||||
|
types: request-build-reference # legacy
|
||||||
|
schedule:
|
||||||
|
- cron: '0 10 * * *' # Once per day at 10am UTC
|
||||||
workflow_dispatch:
|
workflow_dispatch:
|
||||||
|
permissions: read-all
|
||||||
jobs:
|
jobs:
|
||||||
register:
|
build:
|
||||||
if: false
|
runs-on: ubuntu-latest
|
||||||
|
if: github.repository_owner == 'spring-projects'
|
||||||
steps:
|
steps:
|
||||||
- run: echo Workflow registered!
|
- name: Checkout
|
||||||
|
uses: actions/checkout@v2
|
||||||
|
with:
|
||||||
|
ref: docs-build
|
||||||
|
fetch-depth: 1
|
||||||
|
- name: Dispatch
|
||||||
|
run: gh workflow run --ref $(git rev-parse --abbrev-ref HEAD) deploy-docs.yml
|
||||||
|
env:
|
||||||
|
GH_TOKEN: ${{ secrets.GH_ACTIONS_REPO_TOKEN }}
|
||||||
|
18
.github/workflows/rebuild-search-index.yml
vendored
18
.github/workflows/rebuild-search-index.yml
vendored
@ -1,8 +1,20 @@
|
|||||||
name: Rebuild Search Index
|
name: Rebuild Search Index
|
||||||
on:
|
on:
|
||||||
|
schedule:
|
||||||
|
- cron: '0 10 * * *' # Once per day at 10am UTC
|
||||||
workflow_dispatch:
|
workflow_dispatch:
|
||||||
|
permissions: read-all
|
||||||
jobs:
|
jobs:
|
||||||
register:
|
build:
|
||||||
if: false
|
runs-on: ubuntu-latest
|
||||||
|
if: github.repository_owner == 'spring-projects'
|
||||||
steps:
|
steps:
|
||||||
- run: echo Workflow registered!
|
- name: Checkout
|
||||||
|
uses: actions/checkout@v2
|
||||||
|
with:
|
||||||
|
ref: docs-build
|
||||||
|
fetch-depth: 1
|
||||||
|
- name: Dispatch
|
||||||
|
run: gh workflow run --ref $(git rev-parse --abbrev-ref HEAD) rebuild-search-index.yml
|
||||||
|
env:
|
||||||
|
GH_TOKEN: ${{ secrets.GH_ACTIONS_REPO_TOKEN }}
|
||||||
|
22
.github/workflows/trigger-deploy-docs.yml
vendored
22
.github/workflows/trigger-deploy-docs.yml
vendored
@ -1,22 +0,0 @@
|
|||||||
name: Trigger Deploy Docs
|
|
||||||
on:
|
|
||||||
repository_dispatch:
|
|
||||||
types: request-build-reference # legacy
|
|
||||||
schedule:
|
|
||||||
- cron: '0 10 * * *' # Once per day at 10am UTC
|
|
||||||
workflow_dispatch:
|
|
||||||
permissions: read-all
|
|
||||||
jobs:
|
|
||||||
build:
|
|
||||||
runs-on: ubuntu-latest
|
|
||||||
if: github.repository_owner == 'spring-projects'
|
|
||||||
steps:
|
|
||||||
- name: Checkout
|
|
||||||
uses: actions/checkout@v2
|
|
||||||
with:
|
|
||||||
ref: docs-build
|
|
||||||
fetch-depth: 1
|
|
||||||
- name: Dispatch
|
|
||||||
run: gh workflow run --ref $(git rev-parse --abbrev-ref HEAD) deploy-docs.yml
|
|
||||||
env:
|
|
||||||
GH_TOKEN: ${{ secrets.GH_ACTIONS_REPO_TOKEN }}
|
|
@ -1,20 +0,0 @@
|
|||||||
name: Trigger Rebuild Search Index
|
|
||||||
on:
|
|
||||||
schedule:
|
|
||||||
- cron: '0 10 * * *' # Once per day at 10am UTC
|
|
||||||
workflow_dispatch:
|
|
||||||
permissions: read-all
|
|
||||||
jobs:
|
|
||||||
build:
|
|
||||||
runs-on: ubuntu-latest
|
|
||||||
if: github.repository_owner == 'spring-projects'
|
|
||||||
steps:
|
|
||||||
- name: Checkout
|
|
||||||
uses: actions/checkout@v2
|
|
||||||
with:
|
|
||||||
ref: docs-build
|
|
||||||
fetch-depth: 1
|
|
||||||
- name: Dispatch
|
|
||||||
run: gh workflow run --ref $(git rev-parse --abbrev-ref HEAD) rebuild-search-index.yml
|
|
||||||
env:
|
|
||||||
GH_TOKEN: ${{ secrets.GH_ACTIONS_REPO_TOKEN }}
|
|
Loading…
x
Reference in New Issue
Block a user