From 492f9b83514724ce2bbbaadfaa6a0003e898992d Mon Sep 17 00:00:00 2001 From: Martin Pulec Date: Mon, 22 Aug 2022 10:24:16 +0200 Subject: [PATCH] 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`) --- .github/scripts/create_continuous_release.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/scripts/create_continuous_release.sh b/.github/scripts/create_continuous_release.sh index 69835fe53..576a456d1 100755 --- a/.github/scripts/create_continuous_release.sh +++ b/.github/scripts/create_continuous_release.sh @@ -1,4 +1,4 @@ -#!/bin/sh -eu +#!/bin/sh -eux # # Ensures that tag "continuous" is present is released on GH. This is required for # zsync AppImage release asset. @@ -9,7 +9,7 @@ URL=$(curl -S -H "Authorization: token $GITHUB_TOKEN" -X GET "https://api.github if [ "$URL" != null ]; then # release exists exit 0 fi -git fetch --prune --unshallow --tags +git fetch --prune --unshallow --tags -f git tag continuous && git push origin refs/tags/continuous curl -S -H "Authorization: token $GITHUB_TOKEN" -X POST "$URL" -T - <