You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: .github/workflows/rpgxp-release.yml
+30-45Lines changed: 30 additions & 45 deletions
Original file line number
Diff line number
Diff line change
@@ -45,13 +45,11 @@ jobs:
45
45
fi
46
46
47
47
if [ "$IS_FIRST_RELEASE" = false ]; then
48
-
# Version aus dem letzten Tag parsen
49
48
CURRENT=$(echo "$LATEST_TAG" | sed 's/^v//' | sed 's/-rpgxp-scripts$//')
50
49
MAJOR=$(echo "$CURRENT" | cut -d. -f1)
51
50
MINOR=$(echo "$CURRENT" | cut -d. -f2)
52
51
PATCH=$(echo "$CURRENT" | cut -d. -f3)
53
52
54
-
# Prüfen ob neue Ordner hinzugefügt wurden
55
53
HAS_NEW_FOLDER=false
56
54
if [ -n "$DIFF" ]; then
57
55
while IFS=$'\t' read -r status filepath; do
@@ -79,7 +77,7 @@ jobs:
79
77
TAG_NAME="${NEW_VERSION}-rpgxp-scripts"
80
78
81
79
if [ -z "$DIFF" ]; then
82
-
echo "Keine Script-Änderungen erkannt. Release wird übersprungen."
80
+
echo "No script changes detected. Skipping release."
83
81
exit 0
84
82
fi
85
83
@@ -93,13 +91,12 @@ jobs:
93
91
while IFS=$'\t' read -r status filepath; do
94
92
[ -z "$status" ] && continue
95
93
folder=$(echo "$filepath" | cut -d'/' -f1)
96
-
name=$(basename "$filepath")
97
-
display="${name%.rb} ($folder)"
94
+
readable=$(echo "$folder" | sed 's/^[0-9]*-//' | sed 's/-/ /g')
98
95
99
96
case "$status" in
100
-
A*) scripts_added+=("$display") ;;
101
-
D*) scripts_removed+=("$display") ;;
102
-
*) scripts_modified+=("$display") ;;
97
+
A*) scripts_added+=("$readable") ;;
98
+
D*) scripts_removed+=("$readable") ;;
99
+
*) scripts_modified+=("$readable") ;;
103
100
esac
104
101
done <<< "$DIFF"
105
102
@@ -111,83 +108,71 @@ jobs:
111
108
BODY=""
112
109
RELEASE_DATE=$(date -u +"%d-%m-%Y")
113
110
RELEASE_TIME=$(date -u +"%I:%M %p UTC")
114
-
BODY+="**Released: $RELEASE_DATE at $RELEASE_TIME**"$'\n\n'
111
+
BODY+="**Release: $RELEASE_DATE at $RELEASE_TIME**"$'\n\n'
115
112
116
113
if [ "$IS_FIRST_RELEASE" = true ]; then
117
-
BODY+="Initial release containing $total_files RPG Maker XP scripts across all script collections."$'\n\n'
114
+
BODY+="This release contains $total_files RPG Maker XP scripts designed to improve gameplay mechanics and visual presentation. Each script is a drop-in replacement that maintains full compatibility with the standard RPG Maker XP framework while adding new functionality."$'\n\n'
BODY+="This release includes ${summary} script(s)."$'\n\n'
131
126
132
127
if [ $count_added -gt 0 ]; then
133
-
BODY+="**Added ($count_added)**"$'\n\n'
134
128
for s in "${scripts_added[@]}"; do
135
-
BODY+="• ⠀**${s}** added"$'\n'
129
+
BODY+="• ⠀Added ${s}"$'\n'
136
130
done
137
-
BODY+=$'\n'
138
131
fi
139
132
140
133
if [ $count_modified -gt 0 ]; then
141
-
BODY+="**Modified ($count_modified)**"$'\n\n'
142
134
for s in "${scripts_modified[@]}"; do
143
-
BODY+="• ⠀**${s}** updated"$'\n'
135
+
BODY+="• ⠀Enhanced ${s}"$'\n'
144
136
done
145
-
BODY+=$'\n'
146
137
fi
147
138
148
139
if [ $count_removed -gt 0 ]; then
149
-
BODY+="**Removed ($count_removed)**"$'\n\n'
150
140
for s in "${scripts_removed[@]}"; do
151
-
BODY+="• ⠀~~${s}~~ removed"$'\n'
141
+
BODY+="• ⠀Removed ~~${s}~~"$'\n'
152
142
done
153
-
BODY+=$'\n'
154
143
fi
155
144
fi
156
145
157
-
# ── ZIP-Asset erstellen
158
-
echo "Creating release archive..."
146
+
BODY+=$'\n'"**Note:** If you encounter any bugs or issues, please don't hesitate to open an issue. For any questions or to start a discussion, feel free to initiate a discussion on the GitHub repository."
0 commit comments