Skip to content

Commit

Permalink
Merge branch 'abrignoni:main' into main
Browse files Browse the repository at this point in the history
  • Loading branch information
Johann-PLW authored Nov 24, 2024
2 parents b817b6e + 997d0a4 commit 62461fb
Showing 1 changed file with 49 additions and 0 deletions.
49 changes: 49 additions & 0 deletions .github/workflows/update_module_parsing_sqlite_db.yml
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

0 comments on commit 62461fb

Please sign in to comment.