diff --git a/.github/workflows/check_latest_compatibility.yml b/.github/workflows/check_latest_compatibility.yml index 0df9529..49e9f64 100644 --- a/.github/workflows/check_latest_compatibility.yml +++ b/.github/workflows/check_latest_compatibility.yml @@ -12,18 +12,24 @@ 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/action-latest-forge@v1.0.0 with: - minecraft-version: 1.21 + minecraft-version: ${{ env.minecraft_version }} - name: Check compiling uses: ChaoticTrials/action-test-different-property@v1.0.0 @@ -31,9 +37,8 @@ jobs: 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