🐛 Fix: Markdown im Release korrekt darstellen
This commit is contained in:
parent
bae12a31c5
commit
025eb5105c
1 changed files with 6 additions and 11 deletions
17
.github/workflows/release.yml
vendored
17
.github/workflows/release.yml
vendored
|
|
@ -7,26 +7,21 @@ on:
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
create_release:
|
create_release:
|
||||||
name: 📦 Release mit gesamtem CHANGELOG
|
name: 📦 Release mit sauberem Markdown-Body
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: 📥 Repository klonen
|
- name: 📥 Repository klonen
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v4
|
||||||
|
|
||||||
- name: 🔧 Lade gesamten Changelog-Inhalt
|
- name: 🔧 Lade gesamten CHANGELOG.md-Inhalt
|
||||||
id: changelog
|
id: changelog
|
||||||
run: |
|
run: |
|
||||||
CONTENT=$(cat CHANGELOG.md)
|
echo "body<<EOF" >> $GITHUB_OUTPUT
|
||||||
|
cat CHANGELOG.md >> $GITHUB_OUTPUT
|
||||||
|
echo "EOF" >> $GITHUB_OUTPUT
|
||||||
|
|
||||||
# Escape für GitHub-Aktionen
|
- name: 🚀 Release erstellen mit Markdown
|
||||||
CONTENT="${CONTENT//'%'/'%25'}"
|
|
||||||
CONTENT="${CONTENT//$'\n'/'%0A'}"
|
|
||||||
CONTENT="${CONTENT//$'\r'/'%0D'}"
|
|
||||||
|
|
||||||
echo "body=$CONTENT" >> $GITHUB_OUTPUT
|
|
||||||
|
|
||||||
- name: 🚀 Release erstellen mit komplettem CHANGELOG
|
|
||||||
uses: softprops/action-gh-release@v2
|
uses: softprops/action-gh-release@v2
|
||||||
with:
|
with:
|
||||||
name: ${{ github.ref_name }}
|
name: ${{ github.ref_name }}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue