-
Notifications
You must be signed in to change notification settings - Fork 142
57 lines (47 loc) · 1.42 KB
/
testing-docs-check.yml
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
48
49
50
51
52
53
54
55
56
57
name: Check testing docs nightly
on:
workflow_call:
pull_request:
merge_group:
push:
branches:
- main
- release/v*
- feat/*
jobs:
check-testing-docs:
runs-on: ubuntu-latest
permissions:
contents: write
pull-requests: write
steps:
- name: Checkout repository
uses: actions/checkout@v4
with:
ref: tk/check-testing-docs-nightly
- name: Setup Go
uses: actions/setup-go@v5
with:
go-version: "1.22"
check-latest: true
cache: true
cache-dependency-path: go.sum
- name: Generate testing docs for PR
run: make build-testing-docs
- name: Check for changes in integration tests documentation
id: check_changes_pr
continue-on-error: true
run: |
git show HEAD:scripts/test_doc/test_documentation.md > committed_file.md
cp scripts/test_doc/test_documentation.md generated_file.md
diff -q generated_file.md committed_file.md
- name: Create Pull Request
uses: peter-evans/create-pull-request@v7
with:
token: ${{ secrets.PRBOT_PAT }}
commit-message: "docs: update testing documentation"
title: "docs: update testing documentation"
branch: "bot/update-testing-docs"
body: |
This PR updates the testing documentation.
Please review the changes and merge if everything looks correct.