Skip to content

match 24w45a to 24w44a #442

match 24w45a to 24w44a

match 24w45a to 24w44a #442

Workflow file for this run

name: Generate Diff
on: [push]
jobs:
diff:
strategy:
matrix:
java: [21]
runs-on: ubuntu-latest
container:
image: eclipse-temurin:${{ matrix.java }}
options: --user root
steps:
- uses: actions/checkout@v4
- name: Set up JDK
uses: actions/setup-java@v4
with:
java-version: ${{ matrix.java }}
distribution: temurin
- uses: gradle/wrapper-validation-action@v2
- run: ./gradlew decompileVineflower decompileTargetVineflower --stacktrace
if: ${{ matrix.java == 21 }}
- name: Check Target Decompiled
id: can-create-diff
uses: andstor/file-existence-action@v3
with:
files: "namedTargetSrc/net/minecraft/client/main/Main.java"
- name: Create diff
if: ${{ steps.can-create-diff.outputs.files_exists == 'true' }}
run: diff -bur namedTargetSrc/ namedSrc/ > target.diff
continue-on-error: true
- name: Create diff comment
uses: ./.github/actions/diff-uploader/
if: ${{ matrix.java == 21 }}
id: diff-uploader
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
target-src-exists: ${{ steps.can-create-diff.outputs.files_exists }}
- name: Upload diff
if: hashFiles('target.diff') != ''
uses: actions/upload-artifact@v3
with:
name: Diff
path: target.diff