-
Notifications
You must be signed in to change notification settings - Fork 0
26 lines (23 loc) · 970 Bytes
/
check.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
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\""