-
Notifications
You must be signed in to change notification settings - Fork 11
47 lines (46 loc) · 1.42 KB
/
cron.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
name: Refresh Docs
on:
schedule:
- cron: '0 0 * * *'
jobs:
operator-docs:
runs-on: ubuntu-latest
permissions:
contents: 'write'
id-token: 'write'
pull-requests: 'write'
steps:
- name: 'Checkout'
uses: actions/checkout@v3
- name: 'Regenerate Docs'
run: make crd-docs
- id: date
run: echo "date=$(date +%Y%m%d%H%M%S)" >> $GITHUB_OUTPUT
- name: Create Pull Request
uses: peter-evans/create-pull-request@v5
with:
title: Generating Api Docs for ${{steps.date.outputs.date}}
body: Automated pull request to regenerate api docs for the Plural operator
commit-message: Update docs for operator
branch: docs-${{steps.date.outputs.date}}
labels: release
base: main
liquid-docs:
runs-on: ubuntu-latest
permissions:
contents: 'write'
id-token: 'write'
pull-requests: 'write'
steps:
- uses: actions/checkout@v3
- run: make liquid-docs
- id: date
run: echo "date=$(date +%Y%m%d%H%M%S)" >> $GITHUB_OUTPUT
- uses: peter-evans/create-pull-request@v5
with:
title: "docs: Update supported Liquid filters docs"
body: Automated pull request to regenerate supported Liquid filters docs.
commit-message: update supported Liquid filters docs
branch: docs-${{steps.date.outputs.date}}
labels: enhancement
base: main