This repository has been archived on 2024-02-08. You can view files and clone it, but cannot push or open issues or pull requests.
frontend/ping-weblate.sh
kolaente 7b99d96df0
All checks were successful
continuous-integration/drone/push Build is passing
Move weblate ping to shell script
2021-06-24 13:23:48 +02:00

9 lines
368 B
Bash
Executable File

#!/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/