postit-debian/.forgejo/workflows
Paul Schneider ba8ffe5f5b
Some checks failed
Forgejo Release postit-deb / release (push) Failing after 5m16s
fix state file: use JSON instead of shell-sourcable env
The previous version wrote RELEASE_BODY to a state file using the
'<<EOF ... EOF' heredoc syntax, then 'source'd that file at the
top of each subsequent step. Bash cannot parse that file as
shell input: the heredoc body contains markdown with backticks,
asterisks, colons, etc., which bash tries to interpret as
commands ('postit: command not found', '1.0.6: command not
found', etc.).

Switch to JSON via jq: jq handles all escaping correctly via
--arg/--argjson. Each step reads the fields it needs with
`jq -r '.field' $STATE_FILE`.

Also fixes a botched jq merge in the validation step that
mixed `jq -n ... > STATE_FILE` with a `<<< "" `
here-string to the same file.
2026-08-17 16:30:28 +01:00
..
diag.yml diag: add minimal Forgejo Actions diagnostic workflow 2026-08-17 16:16:47 +01:00
release.yml fix state file: use JSON instead of shell-sourcable env 2026-08-17 16:30:28 +01:00