-
Notifications
You must be signed in to change notification settings - Fork 167
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'abrignoni:main' into main
- Loading branch information
Showing
1 changed file
with
49 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
name: Update Module Using SQLite Databases | ||
|
||
on: | ||
push: | ||
branches: | ||
- main | ||
paths: | ||
- 'scripts/artifacts/**' | ||
workflow_dispatch: | ||
|
||
permissions: | ||
contents: write | ||
|
||
jobs: | ||
update-module-info: | ||
# Only run on the main repository, not on forks | ||
if: github.repository == 'abrignoni/iLEAPP' | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
with: | ||
fetch-depth: 0 | ||
|
||
- name: Set up Python | ||
uses: actions/setup-python@v5 | ||
with: | ||
python-version: '3.x' | ||
|
||
- name: Run documentation scripts | ||
run: | | ||
python admin/scripts/modules_parsing_sqlite_db.py | ||
- name: Check for changes | ||
id: git-check | ||
run: | | ||
git diff --exit-code || echo "changes=true" >> $GITHUB_OUTPUT | ||
- name: Commit changes | ||
if: steps.git-check.outputs.changes == 'true' | ||
run: | | ||
git config --local user.email "[email protected]" | ||
git config --local user.name "GitHub Action" | ||
git add admin/docs/modules_parsing_sqlite_db.md | ||
git commit -m "Update documentation files" | ||
- name: Push changes | ||
if: steps.git-check.outputs.changes == 'true' | ||
run: | | ||
git push |