📝 Anpassung und Korrektur release.yml
This commit is contained in:
parent
cbeea8fa19
commit
d39f360886
1 changed files with 6 additions and 9 deletions
15
.github/workflows/release.yml
vendored
15
.github/workflows/release.yml
vendored
|
|
@ -14,11 +14,6 @@ jobs:
|
||||||
- name: 📥 Repository klonen
|
- name: 📥 Repository klonen
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v4
|
||||||
|
|
||||||
- name: 🧪 Python vorbereiten
|
|
||||||
uses: actions/setup-python@v5
|
|
||||||
with:
|
|
||||||
python-version: '3.11'
|
|
||||||
|
|
||||||
- name: 📝 Release Notes aus CHANGELOG extrahieren
|
- name: 📝 Release Notes aus CHANGELOG extrahieren
|
||||||
id: changelog
|
id: changelog
|
||||||
run: |
|
run: |
|
||||||
|
|
@ -32,14 +27,16 @@ jobs:
|
||||||
found { print }
|
found { print }
|
||||||
' CHANGELOG.md)
|
' CHANGELOG.md)
|
||||||
|
|
||||||
echo "RELEASE_BODY<<EOF" >> $GITHUB_ENV
|
BODY_ESCAPED="${BODY//'%'/'%25'}"
|
||||||
echo "$BODY" >> $GITHUB_ENV
|
BODY_ESCAPED="${BODY_ESCAPED//$'\n'/'%0A'}"
|
||||||
echo "EOF" >> $GITHUB_ENV
|
BODY_ESCAPED="${BODY_ESCAPED//$'\r'/'%0D'}"
|
||||||
|
|
||||||
|
echo "body=$BODY_ESCAPED" >> $GITHUB_OUTPUT
|
||||||
|
|
||||||
- name: 🚀 GitHub Release veröffentlichen
|
- name: 🚀 GitHub Release veröffentlichen
|
||||||
uses: softprops/action-gh-release@v2
|
uses: softprops/action-gh-release@v2
|
||||||
with:
|
with:
|
||||||
name: ${{ github.ref_name }}
|
name: ${{ github.ref_name }}
|
||||||
body: ${{ env.RELEASE_BODY }}
|
body: ${{ steps.changelog.outputs.body }}
|
||||||
env:
|
env:
|
||||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue