Skip to content

Commit 57d0200

Browse files
committed
Update info.yml
1 parent 57e4827 commit 57d0200

File tree

1 file changed

+14
-8
lines changed

1 file changed

+14
-8
lines changed

.github/workflows/info.yml

+14-8
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@ run-name: "Project Info #${{ github.run_number }}"
33

44
env:
55
RELEASE_TYPE: "release"
6-
MINECRAFT_VERSION: "1.12.2"
76

87
on:
98
push:
@@ -25,7 +24,7 @@ jobs:
2524
changelog: ${{ steps.changelog.outputs.description }}
2625
diff: ${{ steps.read_diff.outputs.diff }}
2726
release_type: ${{ env.RELEASE_TYPE }}
28-
minecraft_version: ${{ env.MINECRAFT_VERSION }}
27+
minecraft_version: ${{ steps.minecraft_version.outputs.value }}
2928
exists: ${{ steps.check_tag.outputs.exists }}
3029

3130
steps:
@@ -55,7 +54,7 @@ jobs:
5554
fi
5655
5756
- name: 📈 Get latest tag
58-
id: get_latest_tag
57+
id: latest_tag
5958
shell: bash
6059
run: |
6160
tag=$(git describe --tags --abbrev=0)
@@ -70,7 +69,7 @@ jobs:
7069
id: check_pakku_lock_prev
7170
shell: bash
7271
run: |
73-
if ! git ls-tree -r ${{ steps.get_latest_tag.outputs.tag }} -- ./pakku-lock.json &> /dev/null; then
72+
if ! git ls-tree -r ${{ steps.latest_tag.outputs.tag }} -- ./pakku-lock.json &> /dev/null; then
7473
echo "❌ File pakku-lock.json not found in previous tag" && exit 1
7574
else
7675
echo "✔️ File pakku-lock.json found in previous tag"
@@ -80,7 +79,7 @@ jobs:
8079
id: copy_pakku_lock_prev
8180
shell: bash
8281
run: |
83-
git show tags/${{ steps.get_latest_tag.outputs.tag }}:./pakku-lock.json > ./pakku-lock-prev.json
82+
git show tags/${{ steps.latest_tag.outputs.tag }}:./pakku-lock.json > ./pakku-lock-prev.json
8483
if [ -s ./pakku-lock-prev.json ]; then
8584
echo "✔️ File pakku-lock-prev.json created"
8685
else
@@ -95,7 +94,7 @@ jobs:
9594
echo "✔️ Downloaded pakku.jar "
9695
9796
- name: 🔄 Run pakku diff
98-
id: run_pakku_diff
97+
id: pakku_diff
9998
shell: bash
10099
run: |
101100
java -jar pakku.jar diff -v --markdown PROJECTS_DIFF.md ./pakku-lock-prev.json ./pakku-lock.json
@@ -130,6 +129,13 @@ jobs:
130129
with:
131130
file_path: "pakku.json"
132131
prop_path: "version"
132+
133+
- name: 📊 Get Minecraft Version
134+
id: minecraft_version
135+
uses: ActionsTools/[email protected]
136+
with:
137+
file_path: "pakku-lock.json"
138+
prop_path: "mc_versions"
133139

134140
- name: 📄 Changelog Parser
135141
id: changelog
@@ -138,7 +144,7 @@ jobs:
138144
path: CHANGELOG.md
139145

140146
- name: 📈 Upload Diff
141-
id: diff
147+
id: upload_diff
142148
if: ${{ steps.read_diff.outputs.diff != '' }}
143149
uses: actions/[email protected]
144150
with:
@@ -156,7 +162,7 @@ jobs:
156162
echo "📃 **Name**: ${{ steps.project_name.outputs.value }}" >> $GITHUB_STEP_SUMMARY
157163
echo "📃 **Release**: ${{ steps.project_version.outputs.value }}" >> $GITHUB_STEP_SUMMARY
158164
echo "📃 **Release Type**: ${{ env.RELEASE_TYPE }}" >> $GITHUB_STEP_SUMMARY
159-
echo "📃 **Game Version**: ${{ env.MINECRAFT_VERSION }}" >> $GITHUB_STEP_SUMMARY
165+
echo "📃 **Game Version**: ${{ steps.minecraft_version.outputs.value }}" >> $GITHUB_STEP_SUMMARY
160166
161167
echo "${{ steps.changelog.outputs.description }}" >> $GITHUB_STEP_SUMMARY
162168
if [ -n "${{ steps.read_diff.outputs.diff != '' }}" ]; then

0 commit comments

Comments
 (0)