CI: fix release-notes heredoc breaking workflow YAML
All checks were successful
release / build-release (push) Successful in 3m48s
All checks were successful
release / build-release (push) Successful in 3m48s
The inline heredoc for the release body put unindented lines (backticks, fences) at column 1 inside the `run: |` block scalar, which is invalid YAML — so Gitea silently scheduled no run. Move the release notes to .gitea/release-notes.md and cat it instead. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_011YPrEZVBpPVoCRyJz2exkZ
This commit is contained in:
10
.gitea/release-notes.md
Normal file
10
.gitea/release-notes.md
Normal file
@@ -0,0 +1,10 @@
|
|||||||
|
`npmctl` — CLI för Nginx Proxy Manager (NPM) med sudo-liknande token-auth (lösenordet sparas aldrig, bara en kortlivad token) och en generisk `api`-funktion för vilket HTTP-API som helst.
|
||||||
|
|
||||||
|
**Installera (en rad):**
|
||||||
|
```
|
||||||
|
curl -fsSL https://gitea.brasse-pc.eu/brasse/Npm-cli/raw/branch/main/install.sh | sh
|
||||||
|
```
|
||||||
|
|
||||||
|
Eller ladda ner rätt binär nedan (`npmctl-linux-x64` / `npmctl-linux-arm64`), `chmod +x` och lägg i PATH. Verifiera mot `checksums.txt`.
|
||||||
|
|
||||||
|
📖 Guide: https://gitea.brasse-pc.eu/brasse/Npm-cli/wiki
|
||||||
@@ -77,19 +77,7 @@ jobs:
|
|||||||
run: |
|
run: |
|
||||||
set -eu
|
set -eu
|
||||||
B=dist
|
B=dist
|
||||||
BODY=$(cat <<'MD'
|
BODY=$(cat "$GITHUB_WORKSPACE/.gitea/release-notes.md")
|
||||||
`npmctl` — CLI för Nginx Proxy Manager (NPM) med sudo-liknande token-auth (lösenordet sparas aldrig, bara en kortlivad token) och en generisk `api`-funktion för vilket HTTP-API som helst.
|
|
||||||
|
|
||||||
**Installera (en rad):**
|
|
||||||
```
|
|
||||||
curl -fsSL https://gitea.brasse-pc.eu/brasse/Npm-cli/raw/branch/main/install.sh | sh
|
|
||||||
```
|
|
||||||
|
|
||||||
Eller ladda ner rätt binär nedan (`npmctl-linux-x64` / `npmctl-linux-arm64`), `chmod +x` och lägg i PATH. Verifiera mot `checksums.txt`.
|
|
||||||
|
|
||||||
📖 Guide: https://gitea.brasse-pc.eu/brasse/Npm-cli/wiki
|
|
||||||
MD
|
|
||||||
)
|
|
||||||
payload=$(jq -n --arg tag "$TAG" --arg body "$BODY" '{tag_name:$tag,name:$tag,body:$body}')
|
payload=$(jq -n --arg tag "$TAG" --arg body "$BODY" '{tag_name:$tag,name:$tag,body:$body}')
|
||||||
rid=$(curl -s -X POST "$API/repos/$REPO/releases" -H "Authorization: token $TOKEN" -H 'Content-Type: application/json' -d "$payload" | jq -r '.id // empty')
|
rid=$(curl -s -X POST "$API/repos/$REPO/releases" -H "Authorization: token $TOKEN" -H 'Content-Type: application/json' -d "$payload" | jq -r '.id // empty')
|
||||||
[ -z "$rid" ] && rid=$(curl -s "$API/repos/$REPO/releases/tags/$TAG" -H "Authorization: token $TOKEN" | jq -r '.id')
|
[ -z "$rid" ] && rid=$(curl -s "$API/repos/$REPO/releases/tags/$TAG" -H "Authorization: token $TOKEN" | jq -r '.id')
|
||||||
|
|||||||
Reference in New Issue
Block a user