Skip to content

Commit f1b049d

Browse files
committed
fix
1 parent 623350b commit f1b049d

1 file changed

Lines changed: 6 additions & 10 deletions

File tree

.github/workflows/publish.yml

Lines changed: 6 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -71,20 +71,16 @@ jobs:
7171
set -euo pipefail
7272
7373
if [ -n "${RELEASE_BODY_FROM_EVENT:-}" ]; then
74-
python3 - <<'PY'
75-
import os, pathlib
76-
body = os.environ.get("RELEASE_BODY_FROM_EVENT", "")
77-
pathlib.Path("RELEASE_BODY.txt").write_text(body, encoding="utf-8")
78-
print("RELEASE_BODY.txt written from event body, chars:", len(body))
79-
PY
74+
printf '%s' "$RELEASE_BODY_FROM_EVENT" > RELEASE_BODY.txt
8075
else
8176
gh api "repos/${GITHUB_REPOSITORY}/releases/tags/${VERSION}" --jq '.body' > RELEASE_BODY.txt || true
82-
if [ ! -s RELEASE_BODY.txt ]; then
83-
echo "(no release notes)" > RELEASE_BODY.txt
84-
fi
85-
echo "RELEASE_BODY.txt written from API for tag ${VERSION}"
8677
fi
8778
79+
if [ ! -s RELEASE_BODY.txt ]; then
80+
echo "(no release notes)" > RELEASE_BODY.txt
81+
fi
82+
83+
8884
8985
- name: Build plugin (JPRM)
9086
uses: oddstr13/jellyfin-plugin-repository-manager@v1.1.1

0 commit comments

Comments
 (0)