blob: f67310638300874095f707c3962aa649fca62827 (
plain) (
blame)
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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
|
# doc_verify на translation PR (ветка в upstream или в fork).
# QA = тот же пайплайн, что после doc_translate (@v0.1.0).
# Repair-коммит в head-ветку PR (после фикса push URL в action).
name: ydbdoc-review (doc_verify label)
on:
pull_request_target:
types: [labeled]
paths:
- "ydb/docs/**"
permissions:
contents: write
pull-requests: write
jobs:
ydbdoc-verify:
if: github.event.label.name == 'doc_verify'
runs-on: ubuntu-latest
concurrency:
group: ydbdoc-verify-${{ github.event.pull_request.number }}
cancel-in-progress: true
steps:
- name: Checkout PR head
uses: actions/checkout@v5
with:
ref: ${{ github.event.pull_request.head.sha }}
fetch-depth: 0
- name: Fetch merge base ref
run: |
git fetch origin ${{ github.event.pull_request.base.ref }}:refs/remotes/origin/${{ github.event.pull_request.base.ref }}
- name: Verify translation PR
uses: ydb-platform/[email protected]
with:
mode: verify
repo: ${{ github.repository }}
pr: ${{ github.event.pull_request.number }}
merge_base_with: origin/${{ github.event.pull_request.base.ref }}
env:
YANDEX_CLOUD_FOLDER_DOC_REVIEW: ${{ secrets.YANDEX_CLOUD_FOLDER_DOC_REVIEW }}
YANDEX_CLOUD_API_KEY_DOC_REVIEW: ${{ secrets.YANDEX_CLOUD_API_KEY_DOC_REVIEW }}
YDBDOC_REPO_PATH: ${{ github.workspace }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|