-
Notifications
You must be signed in to change notification settings - Fork 1
47 lines (40 loc) · 1.27 KB
/
Copy pathlibrary.yml
File metadata and controls
47 lines (40 loc) · 1.27 KB
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: Update VB6Parse Library Documentation
on:
push:
branches: [master]
paths:
- 'projects/vb6parse/src/syntax/library/**'
- 'projects/vb6parse/scripts/generate-library-docs.py'
workflow_dispatch:
permissions:
contents: write
jobs:
library:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Install Python
uses: actions/setup-python@v5
with:
python-version: '3.x'
- name: Install Python dependencies
run: pip install markdown
- name: Generate library documentation
run: |
python3 projects/vb6parse/scripts/generate-library-docs.py \
--src projects/vb6parse/src/syntax/library \
--output docs/vb6parse/library \
--clean
- name: Commit and push if changed
run: |
git pull --rebase --autostash
git config --global user.name 'github-actions[bot]'
git config --global user.email 'github-actions[bot]@users.noreply.github.com'
git add docs/vb6parse/library/
if git diff --staged --quiet; then
echo "No changes to commit"
else
git commit -m "Update library documentation"
git push
fi