forked from yiisoft/validator
-
Notifications
You must be signed in to change notification settings - Fork 0
33 lines (29 loc) · 862 Bytes
/
docs.yml
File metadata and controls
33 lines (29 loc) · 862 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
name: Update docs translation
on:
pull_request_target:
paths:
- 'docs/**'
jobs:
update-docs:
name: Update docs
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
with:
token: ${{ secrets.YIISOFT_GITHUB_TOKEN || github.token }}
ref: ${{ github.head_ref }}
repository: ${{ github.event.pull_request.head.repo.full_name }}
- name: Use po4a
uses: addnab/docker-run-action@v3
with:
image: arduanovdanil/po4a-fork:v0.73
options: -v ${{ github.workspace }}:/src
run: |
cd docs
po4a po4a.cfg
- name: Commit changed files
uses: stefanzweifel/git-auto-commit-action@v5
with:
commit_message: Update docs translation
file_pattern: 'docs'