Skip to content

Parse Modscraft and push #21

Parse Modscraft and push

Parse Modscraft and push #21

Workflow file for this run

name: Parse Modscraft and push
on:
schedule:
- cron: '0 0 */3 * *'
workflow_dispatch:
jobs:
run-script:
permissions: write-all
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: '3.x'
- name: Run parser
run: |
python3 -m pip install -r requirements.txt
python3 modscraft_mcpe_parser.py index.md
- name: Commit and push changes
run: |
git config --global user.name "GitHub Actions"
git config --global user.email "[email protected]"
git add .
git commit -m "Update links and versions" || echo "No changes to commit"
git push
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}