From ac4ac1d40ff82001b5cc1555e457b3be176443af Mon Sep 17 00:00:00 2001 From: 3wc <3wc@doesthisthing.work> Date: Wed, 27 Aug 2025 11:15:09 -0400 Subject: [PATCH] Adventurous xgettext-go automation --- .drone.yml | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) diff --git a/.drone.yml b/.drone.yml index d5d9809d..c5b53234 100644 --- a/.drone.yml +++ b/.drone.yml @@ -19,6 +19,25 @@ steps: depends_on: - make check + - name: xgettext-go + image: git.coopcloud.tech/toolshed/drone-xgettext-go:latest + settings: + keyword: i18n.G + out: pkg/i18n/locales/abra.pot + depends_on: + - make test + + - name: xgettext-go status + image: alpine:3.22 + commands: + - apk add patchutils git make + - cd /drone/src + - sed -i "s/charset=CHARSET/charset=UTF-8/g" pkg/i18n/locales/abra.pot + - git diff pkg/i18n/locales/abra.pot | grepdiff --output-matching=hunk POT-Creation-Date | git apply --reverse + - git diff-index --quiet --cached HEAD -- + depends_on: + - xgettext-go + - name: fetch image: docker:git commands: @@ -26,6 +45,7 @@ steps: depends_on: - make check - make test + - xgettext-go status when: event: tag @@ -60,6 +80,7 @@ steps: depends_on: - make check - make test + - xgettext-go status - name: on-demand integration test image: appleboy/drone-ssh