commit 9b01913b99d2f75c5e65f029abb0edc353288e1b
parent f0d4498570d6288fa8b937c390793202d54faa71
Author: finwo <finwo@pm.me>
Date: Sun, 19 Feb 2023 21:54:22 +0100
Push tags from ini instead of from workflow.yml
Diffstat:
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/scripts/build-tag.sh b/scripts/build-tag.sh
@@ -81,12 +81,12 @@ ini_foreach ini_output_full "${CFGFILE}" \
# Create a commit+tag of this version and push to origin
git -C "${DIR}/../build" add .
git -C "${DIR}/../build" commit -m "Release (update) $(TZ=UTC date '+%Y-%m-%dT%H:%MZ')"
-git -C "${DIR}/../build" tag -f "${TAG}"
git -C "${DIR}/../build" push -f origin HEAD
# Push only specified tags
while read tag; do
- git push origin "refs/tags/${tag}"
+ git -C "${DIR}/../build" tag -f "${tag}"
+ git -C "${DIR}/../build" push -f origin "refs/tags/${tag}"
done < <(ini_foreach ini_output_value "${CFGFILE}" "mirror.tag")
# Done