Fetch CurseForge versions #123
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: Fetch CurseForge versions | |
on: | |
workflow_dispatch: | |
schedule: | |
- cron: '0 14 * * MON' | |
jobs: | |
run: | |
name: Fetch CurseForge Versions | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v4 | |
- name: Update CurseForge versions.json | |
run: "curl https://minecraft.curseforge.com/api/game/versions?token=${{ secrets.CF_TOKEN }} | python -m json.tool > versions.json" | |
shell: bash | |
- name: Commit changes | |
uses: EndBug/add-and-commit@v9 | |
with: | |
author_name: intellectualsites-bot | |
author_email: "[email protected]" | |
message: 'Update versions.json' |