Commit Graph

10 Commits

Author SHA1 Message Date
Martin Pulec
8bb8b2cb81 gh/create_release: check URL not empty
ensure URL is not empty

see also f4f54fda - adding -f to curl caused URL to be empty if release
was not found (was to be created) - the GH REST API returns 404 with
a valid body without -f but fails with empty. Since `-o pipefail` is not
used, the curl error was not used because last command of pipeline is jq.
2025-11-20 09:08:42 +01:00
Martin Pulec
f4f54fdae9 partially revert 194cb695
The REST API returned 4xx on unknown object but valid JSON body. As
written originally, valid JSON was assumed (result queried on null).

So revert back the original curl calls where acquiring JSON.
2025-11-14 16:30:28 +01:00
Martin Pulec
194cb695e3 GH scripts: add -f to curl
to catch 4xx HTTP errors (curls returns 0 otherwise)
2025-07-15 09:20:42 +02:00
Martin Pulec
cb789020d6 shellchecked all remaining CI scripts 2022-09-08 14:43:42 +02:00
Martin Pulec
ab32827c11 CI: shellchecked .github/scripts/{json,create}* 2022-08-23 10:48:12 +02:00
Martin Pulec
996ad31d71 create_[con_]release.sh: handle HTTP status != 200 2022-08-23 10:48:11 +02:00
Martin Pulec
67c83f0172 create_continuous_release.sh: other fixes
- fetch really 'continuous' release, not $TAG (perhaps c&p error from
  create_release.sh)
- create tag only if not exists
2022-08-23 10:48:11 +02:00
Martin Pulec
284d60dcdf create_continuous_release.sh: force fetch
It looks like git on GH tags without signatures first and thus the
consequent fetch in create_continuous_release.sh fails because it
fetches signed tag (although it is the same object).

See also:
https://github.com/MartinPulec/UltraGrid/actions/runs/2902280934

+ enable debugging in the script (`-x`)
2022-08-23 10:48:11 +02:00
Martin Pulec
3b27f31fb8 create_continuous_release.sh: missing EOF + double-quote vars 2021-11-26 12:20:19 +01:00
Martin Pulec
ddee6968c8 GitHub CI: create continuous release if needed
For Linux AppImages in release channel, zsync files are stored as an
artefact in continuous release assets so ensure that it is present.
2021-11-03 09:04:45 +01:00