-
Notifications
You must be signed in to change notification settings - Fork 0
47 lines (41 loc) · 1.37 KB
/
check_latest_compatibility.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
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
# Do not edit this file directly
# This file is synced by https://github.com/ChaoticTrials/ModMeta
name: Check NeoForge compatibility
on:
workflow_dispatch:
schedule:
- cron: '0 3 * * 5'
jobs:
check:
runs-on: ubuntu-latest
permissions:
issues: write
contents: write
steps:
- uses: actions/checkout@v4
- name: Set up JDK
uses: actions/setup-java@v4
with:
distribution: temurin
java-version: 21
- name: Extract Minecraft Version
id: extract-minecraft-version
run: |
minecraft_version=$(grep -m 1 "^minecraft_version=" gradle.properties | cut -d'=' -f2)
echo "minecraft_version=$minecraft_version" >> $GITHUB_ENV
- name: Get latest NeoForge
id: get-version
uses: ChaoticTrials/action-latest-forge@v1
with:
minecraft-version: ${{ env.minecraft_version }}
- name: Check compiling
uses: ChaoticTrials/action-test-different-property@v1
with:
gradle-property: neo_version
gradle-value: ${{ steps.get-version.outputs.version }}
properties-file: gradle.properties
issue-title: "[${{ env.minecraft_version }}] NeoForge incompatibility"
issue-comment: |
## NeoForge version
- ${{ steps.get-version.outputs.version }}
issue-labels: Compat, bug