Parse Modscraft and push #21
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
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 }} |