7 Commits

Author SHA1 Message Date
Martin Pulec
2b9b642023 GH scripts: import back from GPUJPEG
import improvements from GPUJPEG - summary:
- LABEL - replace ' ' with %20 (will get to URL)
- use while instead of for..seq
- cat json file directly (avoid interpretting \n and \r that XSI-compilant
echo, as in dash, does)
- cat really the $json file, don't print its name
- wrap long lines + early return in while-loop

The rewrite of `for n in \`seq` may be perhaps a bit controversal
(with while is less readable) but technically POSIX doesn't specify the
seq comand.
2025-06-11 13:16:03 +02:00
Martin Pulec
9b855d4641 CI fetch_json: fixed when GITHUB_TOKEN not passed
When GITHUB_TOKEN was not provided, fetch_json didn't work, because it
uses positional arguments ("$@"), which were set only in this case but
not unset otherwise.
2023-11-16 14:53:18 +01:00
Martin Pulec
87ec574f81 .github/scripts/json-common.sh: token optional
GitHub token is not always required so make it optional.

+ rewrite (use small letters for local vars, curl silent /-sS/)
2022-09-22 10:21:13 +02:00
Martin Pulec
ab32827c11 CI: shellchecked .github/scripts/{json,create}* 2022-08-23 10:48:12 +02:00
Martin Pulec
ce6bdd79cf CI: json-common.sh - safety check + escape 2022-08-23 10:48:11 +02:00
Martin Pulec
d2aa27da2a GitHub CI: use JSON file
Use JSON as a file to fix '\n' in JSON handling.
2020-05-26 21:50:51 +02:00
Martin Pulec
ee974c7764 GitHub Workflows: check HTTP status codes 2020-04-03 13:51:57 +02:00