-
Notifications
You must be signed in to change notification settings - Fork 289
41 lines (33 loc) · 954 Bytes
/
docs.yml
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
# GitHub action for the task table generation.
name: documentation
on:
push:
branches: [main]
jobs:
create-table:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
token: ${{ secrets.RELEASE }}
- uses: actions/setup-python@v4
with:
python-version: "3.10"
cache: "pip"
- name: Install dependencies
run: |
make install
- name: Create table
run: python docs/create_tasks_table.py
- name: Push table
run: |
git config --global user.email "github-actions[bot]@users.noreply.github.com"
git config --global user.name "github-actions[bot]"
# Check if changes exist
if git diff --quiet; then
echo "No changes detected"
else
git add docs/tasks.md
git commit -m "Update tasks table"
git push
fi