Skip to content

Commit 5efbaa5

Browse files
Create workflow (#331)
1 parent 8b68baa commit 5efbaa5

File tree

1 file changed

+34
-0
lines changed

1 file changed

+34
-0
lines changed

.github/workflows/autogen-docs.yml

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
name: autogen-docs
2+
run-name: Automatically run GenerateDocs
3+
on:
4+
schedule:
5+
- cron: '45 10 * * TUE'
6+
- cron: '45 10 * * THU'
7+
- cron: '15 17 * * WED'
8+
jobs:
9+
autogen-docs:
10+
runs-on: ubuntu-latest
11+
defaults:
12+
run:
13+
working-directory: ./generate-docs
14+
steps:
15+
- name: Check out repository
16+
uses: actions/checkout@v4
17+
- name: Set up node
18+
uses: actions/setup-node@v4
19+
with:
20+
node-version: '18'
21+
- name: Run GenerateDocs script
22+
run: |
23+
echo "Generating docs"
24+
./GenerateDocs.sh
25+
- name: Commit and push changes
26+
run: |
27+
echo "Committing and pushing changes to autogen-docs branch"
28+
git config user.name github-actions
29+
git config user.email [email protected]
30+
git checkout -b autogen-docs
31+
git add .
32+
git commit -m "Automatically generated docs"
33+
git push
34+

0 commit comments

Comments
 (0)