Fix CI: pass changelog notes via env var instead of inline interpolation
All checks were successful
Release / build-and-release (push) Successful in 26m43s
All checks were successful
Release / build-and-release (push) Successful in 26m43s
The ${{ steps.changelog.outputs.notes }} expression was being interpolated
directly into shell commands, causing parse errors when the changelog
contained special characters, markdown, or backticks.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
parent
1b49871ea0
commit
457dbce6c2
1 changed files with 7 additions and 7 deletions
|
|
@ -83,6 +83,8 @@ jobs:
|
||||||
} >> "$GITHUB_OUTPUT"
|
} >> "$GITHUB_OUTPUT"
|
||||||
|
|
||||||
- name: Generate latest.json
|
- name: Generate latest.json
|
||||||
|
env:
|
||||||
|
CHANGELOG_NOTES: ${{ steps.changelog.outputs.notes }}
|
||||||
run: |
|
run: |
|
||||||
TAG="${GITHUB_REF_NAME}"
|
TAG="${GITHUB_REF_NAME}"
|
||||||
VERSION="${GITHUB_REF_NAME#v}"
|
VERSION="${GITHUB_REF_NAME#v}"
|
||||||
|
|
@ -123,7 +125,7 @@ jobs:
|
||||||
|
|
||||||
jq -n \
|
jq -n \
|
||||||
--arg version "$VERSION" \
|
--arg version "$VERSION" \
|
||||||
--arg notes "${{ steps.changelog.outputs.notes }}" \
|
--arg notes "$CHANGELOG_NOTES" \
|
||||||
--arg pub_date "$PUB_DATE" \
|
--arg pub_date "$PUB_DATE" \
|
||||||
--argjson platforms "$PLATFORMS" \
|
--argjson platforms "$PLATFORMS" \
|
||||||
'{version: $version, notes: $notes, pub_date: $pub_date, platforms: $platforms}' \
|
'{version: $version, notes: $notes, pub_date: $pub_date, platforms: $platforms}' \
|
||||||
|
|
@ -135,22 +137,20 @@ jobs:
|
||||||
- name: Create release and upload assets
|
- name: Create release and upload assets
|
||||||
env:
|
env:
|
||||||
FORGEJO_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
FORGEJO_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
CHANGELOG_NOTES: ${{ steps.changelog.outputs.notes }}
|
||||||
run: |
|
run: |
|
||||||
TAG="${GITHUB_REF_NAME}"
|
TAG="${GITHUB_REF_NAME}"
|
||||||
API_URL="${GITHUB_SERVER_URL}/api/v1"
|
API_URL="${GITHUB_SERVER_URL}/api/v1"
|
||||||
REPO="${GITHUB_REPOSITORY}"
|
REPO="${GITHUB_REPOSITORY}"
|
||||||
|
|
||||||
BODY=$(cat <<'BODY_EOF'
|
BODY="${CHANGELOG_NOTES}
|
||||||
${{ steps.changelog.outputs.notes }}
|
|
||||||
|
|
||||||
---
|
---
|
||||||
|
|
||||||
## Installation
|
## Installation
|
||||||
|
|
||||||
**Windows** : Téléchargez le fichier `.exe` ci-dessous.
|
**Windows** : Téléchargez le fichier \`.exe\` ci-dessous.
|
||||||
**Linux** : Téléchargez le fichier `.deb` ou `.AppImage` ci-dessous.
|
**Linux** : Téléchargez le fichier \`.deb\` ou \`.AppImage\` ci-dessous."
|
||||||
BODY_EOF
|
|
||||||
)
|
|
||||||
|
|
||||||
# Create release
|
# Create release
|
||||||
RELEASE_RESPONSE=$(curl -s -X POST \
|
RELEASE_RESPONSE=$(curl -s -X POST \
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue