From 7b99d96df00798884fb23ff59ca0435529de58bd Mon Sep 17 00:00:00 2001 From: kolaente Date: Thu, 24 Jun 2021 13:23:48 +0200 Subject: [PATCH] Move weblate ping to shell script --- .drone.yml | 3 +-- ping-weblate.sh | 8 ++++++++ 2 files changed, 9 insertions(+), 2 deletions(-) create mode 100755 ping-weblate.sh diff --git a/.drone.yml b/.drone.yml index 3f7c89268..1d0b3c76b 100644 --- a/.drone.yml +++ b/.drone.yml @@ -557,5 +557,4 @@ steps: WEBLATE_TOKEN: from_secret: weblate_token commands: - - 'curl -d operation=pull -H "Authorization: Token ${WEBLATE_TOKEN}" https://hosted.weblate.org/api/projects/vikunja/repository/' - - 'curl -d operation=push -H "Authorization: Token ${WEBLATE_TOKEN}" https://hosted.weblate.org/api/projects/vikunja/repository/' + - ./ping-weblate.sh diff --git a/ping-weblate.sh b/ping-weblate.sh new file mode 100755 index 000000000..af0e2e019 --- /dev/null +++ b/ping-weblate.sh @@ -0,0 +1,8 @@ +#!/bin/sh + +set -e + +# Shell script because yaml doesn't understand the header is a string literal and not a yaml symbol + +curl -d operation=pull -H "Authorization: Token $WEBLATE_TOKEN" https://hosted.weblate.org/api/projects/vikunja/repository/ +curl -d operation=push -H "Authorization: Token $WEBLATE_TOKEN" https://hosted.weblate.org/api/projects/vikunja/repository/