mirror of
https://github.com/Luzifer/ots.git
synced 2024-12-18 03:54:38 -05:00
CI: Switch to different action for commit/push
Signed-off-by: Knut Ahlers <knut@ahlers.me>
This commit is contained in:
parent
f416dd910b
commit
e1db6a7bf6
19
.github/workflows/pr-regen-translations.yml
vendored
19
.github/workflows/pr-regen-translations.yml
vendored
@ -2,12 +2,8 @@
|
||||
|
||||
name: pull-request-ci
|
||||
on:
|
||||
pull_request_target:
|
||||
types: ["opened", "synchronize", "reopened", "labeled", "unlabeled"]
|
||||
branches: ["master"]
|
||||
|
||||
permissions:
|
||||
contents: write
|
||||
pull_request:
|
||||
paths: ["i18n.yaml"]
|
||||
|
||||
jobs:
|
||||
generate-translations:
|
||||
@ -21,13 +17,15 @@ jobs:
|
||||
CGO_ENABLED: 0
|
||||
GOPATH: /go
|
||||
|
||||
permissions:
|
||||
contents: write
|
||||
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
with:
|
||||
ref: ${{ github.event.pull_request.head.ref }}
|
||||
repository: ${{ github.event.pull_request.head.repo.full_name }}
|
||||
ref: ${{ github.head_ref }}
|
||||
|
||||
- name: Marking workdir safe
|
||||
run: git config --global --add safe.directory /__w/ots/ots
|
||||
@ -36,8 +34,9 @@ jobs:
|
||||
working-directory: ./ci/translate
|
||||
run: go run .
|
||||
|
||||
- uses: int128/update-generated-files-action@v2
|
||||
- uses: stefanzweifel/git-auto-commit-action@v5
|
||||
with:
|
||||
commit-message: 'CI: Update embedded translations'
|
||||
commit_message: 'CI: Update embedded translations'
|
||||
file_pattern: 'src/langs/langs.js'
|
||||
|
||||
...
|
||||
|
Loading…
Reference in New Issue
Block a user