forked from AG_QGIS/Plugin_Test_Action
Compare commits
3 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
78ffc6d6d2 | ||
|
|
00785eeabd | ||
|
|
8f0e6a9978 |
@@ -64,17 +64,19 @@ jobs:
|
|||||||
cd repo
|
cd repo
|
||||||
|
|
||||||
# Aktueller Block = alles vor dem ersten ---
|
# Aktueller Block = alles vor dem ersten ---
|
||||||
CURRENT=$(sed '/^---/Q' changelog.txt)
|
CURRENT=$(awk '/^---/{exit} {print}' changelog.txt)
|
||||||
|
|
||||||
# Vollständige Historie für Gitea Release Body
|
# Vollständige Historie = alles nach dem ersten ---
|
||||||
# Aktuelle Version aus Tag voranstellen
|
HISTORY=$(awk 'found{print} /^---/{found=1}' changelog.txt)
|
||||||
|
|
||||||
|
# Gitea Release Body zusammenbauen
|
||||||
VERSION="${{ steps.releaseinfo.outputs.version }}"
|
VERSION="${{ steps.releaseinfo.outputs.version }}"
|
||||||
FULL=$(printf "## %s\n%s\n\n%s" \
|
FULL=$(printf "## %s\n%s\n\n%s" "$VERSION" "$CURRENT" "$HISTORY")
|
||||||
"$VERSION" \
|
|
||||||
"$CURRENT" \
|
|
||||||
"$(sed '1,/^---/d' changelog.txt)")
|
|
||||||
|
|
||||||
# Für GITHUB_OUTPUT: Newlines escapen
|
echo "DEBUG | Aktueller Changelog:"
|
||||||
|
echo "$CURRENT"
|
||||||
|
|
||||||
|
# Für GITHUB_OUTPUT: Multiline via EOF-Marker
|
||||||
echo "current<<EOF" >> $GITHUB_OUTPUT
|
echo "current<<EOF" >> $GITHUB_OUTPUT
|
||||||
echo "$CURRENT" >> $GITHUB_OUTPUT
|
echo "$CURRENT" >> $GITHUB_OUTPUT
|
||||||
echo "EOF" >> $GITHUB_OUTPUT
|
echo "EOF" >> $GITHUB_OUTPUT
|
||||||
@@ -135,7 +137,7 @@ jobs:
|
|||||||
|
|
||||||
echo "zip_name=${ZIP_NAME}" >> $GITHUB_OUTPUT
|
echo "zip_name=${ZIP_NAME}" >> $GITHUB_OUTPUT
|
||||||
|
|
||||||
- name: Gitea‑Release erstellen
|
- name: Gitea-Release erstellen
|
||||||
id: create_release
|
id: create_release
|
||||||
run: |
|
run: |
|
||||||
TAG="${{ github.ref_name }}"
|
TAG="${{ github.ref_name }}"
|
||||||
|
|||||||
@@ -1,3 +1,6 @@
|
|||||||
|
- Ganz viele neue Sachen
|
||||||
|
---
|
||||||
|
61
|
||||||
- Feature XY hinzugefügt
|
- Feature XY hinzugefügt
|
||||||
- Bug Z behoben
|
- Bug Z behoben
|
||||||
0.1.0
|
0.1.0
|
||||||
|
|||||||
Reference in New Issue
Block a user