Skip to content

Commit

Permalink
CI: Add automated regeneration of translations
Browse files Browse the repository at this point in the history
Signed-off-by: Knut Ahlers <[email protected]>
  • Loading branch information
Luzifer committed Sep 23, 2024
1 parent 3a29041 commit 4caee6c
Showing 1 changed file with 36 additions and 0 deletions.
36 changes: 36 additions & 0 deletions .github/workflows/pr-regen-translations.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
---

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: 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'

...

0 comments on commit 4caee6c

Please sign in to comment.