File tree Expand file tree Collapse file tree 1 file changed +49
-0
lines changed Expand file tree Collapse file tree 1 file changed +49
-0
lines changed Original file line number Diff line number Diff line change
1
+ name : Update Module Using SQLite Databases
2
+
3
+ on :
4
+ push :
5
+ branches :
6
+ - main
7
+ paths :
8
+ - ' scripts/artifacts/**'
9
+ workflow_dispatch :
10
+
11
+ permissions :
12
+ contents : write
13
+
14
+ jobs :
15
+ update-module-info :
16
+ # Only run on the main repository, not on forks
17
+ if : github.repository == 'abrignoni/iLEAPP'
18
+ runs-on : ubuntu-latest
19
+ steps :
20
+ - uses : actions/checkout@v4
21
+ with :
22
+ fetch-depth : 0
23
+
24
+ - name : Set up Python
25
+ uses : actions/setup-python@v5
26
+ with :
27
+ python-version : ' 3.x'
28
+
29
+ - name : Run documentation scripts
30
+ run : |
31
+ python admin/scripts/modules_parsing_sqlite_db.py
32
+
33
+ - name : Check for changes
34
+ id : git-check
35
+ run : |
36
+ git diff --exit-code || echo "changes=true" >> $GITHUB_OUTPUT
37
+
38
+ - name : Commit changes
39
+ if : steps.git-check.outputs.changes == 'true'
40
+ run : |
41
+ git config --local user.email "action@github.com"
42
+ git config --local user.name "GitHub Action"
43
+ git add admin/docs/modules_parsing_sqlite_db.md
44
+ git commit -m "Update documentation files"
45
+
46
+ - name : Push changes
47
+ if : steps.git-check.outputs.changes == 'true'
48
+ run : |
49
+ git push
You can’t perform that action at this time.
0 commit comments