Skip to content

Commit

Permalink
[meta] get minecraft version in workflow from gradle.properties
Browse files Browse the repository at this point in the history
  • Loading branch information
MelanX committed Jul 10, 2024
1 parent 416f76a commit 879e7a6
Showing 1 changed file with 11 additions and 6 deletions.
17 changes: 11 additions & 6 deletions .github/workflows/check_latest_compatibility.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,28 +12,33 @@ jobs:
contents: write

steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- name: Set up JDK
uses: actions/setup-java@v2
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: 1.21
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: "[${{ steps.get-version.inputs.minecraft-version }}] NeoForge incompatibility"
issue-title: "[${{ env.minecraft_version }}] NeoForge incompatibility"
issue-comment: |
# NeoForge incompatibility
## NeoForge version
- ${{ inputs.gradle-value }}
- ${{ steps.get-version.outputs.version }}
issue-labels: Compat, bug

0 comments on commit 879e7a6

Please sign in to comment.