Skip to content

Commit 9c81be0

Browse files
committed
Update BuildMultiplatform.yml
1 parent 27d9a28 commit 9c81be0

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed

.github/workflows/BuildMultiplatform.yml

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,24 @@ jobs:
5050
echo "projectsuffix=build.${{ github.run_number }}" >> $GITHUB_OUTPUT
5151
fi
5252
53+
- name: Diff
54+
run: |
55+
latest_tag=$(git describe --tags --abbrev=0)
56+
latest_tagged_commit=$(git rev-list -n 1 --pretty=format:"%h" $latest_tag | sed -n 2p)
57+
58+
if [ "$latest_tag" = ${{ steps.version.outputs.tag }} ]; then
59+
latest_tag=$(git describe --tags --abbrev=0 $(git describe --tags --abbrev=0)^)
60+
latest_tagged_commit=$(git rev-list -n 1 --pretty=format:"%h" $latest_tag | sed -n 2p)
61+
fi
62+
63+
echo "latest commit: $latest_commit"
64+
echo "latest tagged commit: $latest_tagged_commit"
65+
66+
git show $latest_tagged_commit:./pakku-lock.json > ./pakku-lock-prev.json
67+
68+
curl https://github.com/juraj-hrivnak/pakku/releases/latest/download/pakku.jar -o pakku.jar -L -J
69+
java -jar ./pakku.jar diff ./pakku-lock-prev.json ./pakku-lock.json
70+
5371
build-modpack:
5472
name: Build Modpack
5573
runs-on: ubuntu-latest

0 commit comments

Comments
 (0)