Skip to content

Commit

Permalink
[meta] add compatibility test with latest neoforge version
Browse files Browse the repository at this point in the history
  • Loading branch information
MelanX committed Jul 11, 2024
1 parent 01b8a65 commit e1de187
Showing 1 changed file with 44 additions and 0 deletions.
44 changes: 44 additions & 0 deletions .github/workflows/check_latest_compatibility.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
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/[email protected]
with:
minecraft-version: ${{ env.minecraft_version }}

- name: Check compiling
uses: ChaoticTrials/[email protected]
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

0 comments on commit e1de187

Please sign in to comment.