Modrinth Modpack Update Checker Test #860
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: 'Modrinth Modpack Update Checker Test' | |
on: | |
schedule: | |
- cron: '0 * * * *' # Every hour | |
workflow_dispatch: # Allow running the workflow manually | |
jobs: | |
check-updates: | |
runs-on: ubuntu-latest | |
steps: | |
- name: 'Check Modrinth Modpack updates' | |
uses: Gunivers/[email protected] | |
id: check | |
with: | |
modrinth-modpack-slug: 'map-making-modpack' | |
- name: Print if the modpack can be upgraded | |
if: ${{ steps.check.outputs.can-upgrade == 'true' }} | |
run: "echo \"The modpack can be upgraded to the new Minecraft version\"" | |
- name: Print if the modpack cannot be upgraded | |
if: ${{ steps.check.outputs.can-upgrade == 'false' }} | |
run: "echo \"The modpack cannot be upgraded to the new Minecraft version\"" | |
- name: Print if the modpack is up to date | |
if: ${{ steps.check.outputs.is-up-to-date == 'true' }} | |
run: "echo \"The modpack is up to date\"" |