Skip to content

Modrinth Modpack Update Checker Test #860

Modrinth Modpack Update Checker Test

Modrinth Modpack Update Checker Test #860

Workflow file for this run

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\""