Adventurous xgettext-go automation

This commit is contained in:
3wc
2025-08-27 11:15:09 -04:00
committed by 3wordchant
parent 7c31e4dc45
commit ac4ac1d40f

View File

@ -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