mirror of
https://github.com/Luzifer/ots.git
synced 2024-12-18 03:54:38 -05:00
CI: Add automated regeneration of translations (#195)
This commit is contained in:
parent
3a29041652
commit
e9371c90a0
39
.github/workflows/pr-regen-translations.yml
vendored
Normal file
39
.github/workflows/pr-regen-translations.yml
vendored
Normal file
@ -0,0 +1,39 @@
|
|||||||
|
---
|
||||||
|
|
||||||
|
name: pull-request-ci
|
||||||
|
on:
|
||||||
|
pull_request:
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
generate-translations:
|
||||||
|
defaults:
|
||||||
|
run:
|
||||||
|
shell: bash
|
||||||
|
|
||||||
|
container:
|
||||||
|
image: luzifer/gh-arch-env
|
||||||
|
env:
|
||||||
|
CGO_ENABLED: 0
|
||||||
|
GOPATH: /go
|
||||||
|
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
|
permissions:
|
||||||
|
# required to push a commit
|
||||||
|
contents: write
|
||||||
|
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v4
|
||||||
|
|
||||||
|
- name: Marking workdir safe
|
||||||
|
run: git config --global --add safe.directory /__w/ots/ots
|
||||||
|
|
||||||
|
- name: Re-Generate embedded translations file
|
||||||
|
working-directory: ./ci/translate
|
||||||
|
run: go run .
|
||||||
|
|
||||||
|
- uses: int128/update-generated-files-action@v2
|
||||||
|
with:
|
||||||
|
commit-message: 'CI: Update embedded translations'
|
||||||
|
|
||||||
|
...
|
Loading…
Reference in New Issue
Block a user