@@ -3,7 +3,6 @@ run-name: "Project Info #${{ github.run_number }}"
3
3
4
4
env :
5
5
RELEASE_TYPE : " release"
6
- MINECRAFT_VERSION : " 1.12.2"
7
6
8
7
on :
9
8
push :
25
24
changelog : ${{ steps.changelog.outputs.description }}
26
25
diff : ${{ steps.read_diff.outputs.diff }}
27
26
release_type : ${{ env.RELEASE_TYPE }}
28
- minecraft_version : ${{ env.MINECRAFT_VERSION }}
27
+ minecraft_version : ${{ steps.minecraft_version.outputs.value }}
29
28
exists : ${{ steps.check_tag.outputs.exists }}
30
29
31
30
steps :
55
54
fi
56
55
57
56
- name : 📈 Get latest tag
58
- id : get_latest_tag
57
+ id : latest_tag
59
58
shell : bash
60
59
run : |
61
60
tag=$(git describe --tags --abbrev=0)
70
69
id : check_pakku_lock_prev
71
70
shell : bash
72
71
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
74
73
echo "❌ File pakku-lock.json not found in previous tag" && exit 1
75
74
else
76
75
echo "✔️ File pakku-lock.json found in previous tag"
80
79
id : copy_pakku_lock_prev
81
80
shell : bash
82
81
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
84
83
if [ -s ./pakku-lock-prev.json ]; then
85
84
echo "✔️ File pakku-lock-prev.json created"
86
85
else
95
94
echo "✔️ Downloaded pakku.jar "
96
95
97
96
- name : 🔄 Run pakku diff
98
- id : run_pakku_diff
97
+ id : pakku_diff
99
98
shell : bash
100
99
run : |
101
100
java -jar pakku.jar diff -v --markdown PROJECTS_DIFF.md ./pakku-lock-prev.json ./pakku-lock.json
@@ -130,6 +129,13 @@ jobs:
130
129
with :
131
130
file_path : " pakku.json"
132
131
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"
133
139
134
140
- name : 📄 Changelog Parser
135
141
id : changelog
@@ -138,7 +144,7 @@ jobs:
138
144
path : CHANGELOG.md
139
145
140
146
- name : 📈 Upload Diff
141
- id : diff
147
+ id : upload_diff
142
148
if : ${{ steps.read_diff.outputs.diff != '' }}
143
149
144
150
with :
@@ -156,7 +162,7 @@ jobs:
156
162
echo "📃 **Name**: ${{ steps.project_name.outputs.value }}" >> $GITHUB_STEP_SUMMARY
157
163
echo "📃 **Release**: ${{ steps.project_version.outputs.value }}" >> $GITHUB_STEP_SUMMARY
158
164
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
160
166
161
167
echo "${{ steps.changelog.outputs.description }}" >> $GITHUB_STEP_SUMMARY
162
168
if [ -n "${{ steps.read_diff.outputs.diff != '' }}" ]; then
0 commit comments