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
|
name: pull-request-ci
|
||||||
on:
|
on:
|
||||||
pull_request_target:
|
pull_request:
|
||||||
types: ["opened", "synchronize", "reopened", "labeled", "unlabeled"]
|
paths: ["i18n.yaml"]
|
||||||
branches: ["master"]
|
|
||||||
|
|
||||||
permissions:
|
|
||||||
contents: write
|
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
generate-translations:
|
generate-translations:
|
||||||
@ -21,13 +17,15 @@ jobs:
|
|||||||
CGO_ENABLED: 0
|
CGO_ENABLED: 0
|
||||||
GOPATH: /go
|
GOPATH: /go
|
||||||
|
|
||||||
|
permissions:
|
||||||
|
contents: write
|
||||||
|
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
with:
|
with:
|
||||||
ref: ${{ github.event.pull_request.head.ref }}
|
ref: ${{ github.head_ref }}
|
||||||
repository: ${{ github.event.pull_request.head.repo.full_name }}
|
|
||||||
|
|
||||||
- name: Marking workdir safe
|
- name: Marking workdir safe
|
||||||
run: git config --global --add safe.directory /__w/ots/ots
|
run: git config --global --add safe.directory /__w/ots/ots
|
||||||
@ -36,8 +34,9 @@ jobs:
|
|||||||
working-directory: ./ci/translate
|
working-directory: ./ci/translate
|
||||||
run: go run .
|
run: go run .
|
||||||
|
|
||||||
- uses: int128/update-generated-files-action@v2
|
- uses: stefanzweifel/git-auto-commit-action@v5
|
||||||
with:
|
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