Skip to content

Download Minecraft Jars #229

Download Minecraft Jars

Download Minecraft Jars #229

Workflow file for this run

name: Download Minecraft Jars
on:
schedule:
- cron: '0 0 * * *'
workflow_dispatch:
jobs:
download-and-commit:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
with:
token: ${{ secrets.PAT }}
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: '3.x'
- name: Install dependencies
run: pip install requests
- name: Run downloadJars.py
run: python scripts/downloadJars.py
- name: Update readme
run: python scripts/updateReadme.py
- name: Commit and push changes
run: |
git config --global user.name "github-actions[bot]"
git config --global user.email "41898282+github-actions[bot]@users.noreply.github.com"
git add .
if ! git diff --cached --quiet; then
git commit -m "chore: update Minecraft server jars [auto]"
git push
fi