ots/.github/workflows/pr-regen-translations.yml
Knut Ahlers e1db6a7bf6
CI: Switch to different action for commit/push
Signed-off-by: Knut Ahlers <knut@ahlers.me>
2024-11-21 12:11:00 +01:00

43 lines
819 B
YAML

---
name: pull-request-ci
on:
pull_request:
paths: ["i18n.yaml"]
jobs:
generate-translations:
defaults:
run:
shell: bash
container:
image: luzifer/gh-arch-env
env:
CGO_ENABLED: 0
GOPATH: /go
permissions:
contents: write
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
ref: ${{ github.head_ref }}
- 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: stefanzweifel/git-auto-commit-action@v5
with:
commit_message: 'CI: Update embedded translations'
file_pattern: 'src/langs/langs.js'
...