-
Notifications
You must be signed in to change notification settings - Fork 196
34 lines (29 loc) · 929 Bytes
/
update-code-docs.yml
File metadata and controls
34 lines (29 loc) · 929 Bytes
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
name: CI-production-update-code-docs
on:
push:
branches:
- 'master'
- '!develop'
jobs:
update_code_docs:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v5
with:
ref: 'code-docs-branch'
fetch-depth: 0 # otherwise, you will fail to push refs to the dest repo
- name: install doxygen and python
run: |
sudo apt update
sudo apt install python3 doxygen
# deletes old docs, generates new ones, and adds all new files to git
- name: update docs
run: python3 docs/generate_docs.py
# commit and push to code docs branch
- name: Commit & Push changes
uses: actions-js/push@master
with:
github_token: ${{ secrets.GH_TOKEN_FOR_COMMITTING_AND_PUSHING_CODE_DOCS }}
message: '[Github actions] Update code docs'
branch: 'code-docs-branch'