File tree Expand file tree Collapse file tree 3 files changed +93
-0
lines changed Expand file tree Collapse file tree 3 files changed +93
-0
lines changed Original file line number Diff line number Diff line change
1
+ name : Check Autobuilder for Errors
2
+
3
+ on :
4
+ pull_request :
5
+ paths :
6
+ - " source/**"
7
+
8
+ jobs :
9
+ check :
10
+ runs-on : ubuntu-latest
11
+ steps :
12
+ - uses : actions/checkout@v3
13
+ - uses : cbush/snooty-autobuilder-check@main
Original file line number Diff line number Diff line change
1
+ name : Copy Files to docs-shared
2
+
3
+ on :
4
+ workflow_dispatch : {} # use to manually trigger workflow
5
+ push :
6
+ branches :
7
+ - " master"
8
+ paths :
9
+ - " source/includes/mongodb-compatibility-table-css.rst"
10
+ - " source/includes/language-compatibility-table-cxx.rst"
11
+
12
+ jobs :
13
+ copy-file :
14
+ runs-on : ubuntu-latest
15
+ steps :
16
+ - name : Checkout code
17
+ uses : actions/checkout@v3
18
+
19
+ - name : Copy mongodb-compat table
20
+ uses : dmnemec/copy_file_to_another_repo_action@main
21
+ env :
22
+ API_TOKEN_GITHUB : ${{ secrets.API_TOKEN_GITHUB }}
23
+ with :
24
+ source_file : " source/includes/mongodb-compatibility-table-cxx.rst"
25
+ destination_repo : " 10gen/docs-shared"
26
+ destination_folder : " dbx"
27
+
28
+ user_name : " docs-builder-bot"
29
+ commit_message : " Auto-import from docs-cpp"
30
+
31
+ - name : Copy language-compat table
32
+ uses : dmnemec/copy_file_to_another_repo_action@main
33
+ env :
34
+ API_TOKEN_GITHUB : ${{ secrets.API_TOKEN_GITHUB }}
35
+ with :
36
+ source_file : " source/includes/language-compatibility-table-cxx.rst"
37
+ destination_repo : " 10gen/docs-shared"
38
+ destination_folder : " dbx"
39
+
40
+ user_name : " docs-builder-bot"
41
+ commit_message : " Auto-import from docs-cpp"
Original file line number Diff line number Diff line change
1
+ name : vale-checks
2
+ on :
3
+ pull_request :
4
+ paths :
5
+ - " source/**"
6
+
7
+ jobs :
8
+ vale :
9
+ name : TDBX Vale rules
10
+ runs-on : ubuntu-latest
11
+ steps :
12
+ - name : checkout
13
+ uses : actions/checkout@v4
14
+
15
+ - id : files
16
+ uses : masesgroup/retrieve-changed-files@v2
17
+ with :
18
+ format : ' csv'
19
+
20
+ - name : checkout-latest-rules
21
+ uses : actions/checkout@v4
22
+ with :
23
+ repository : mongodb/mongodb-vale-action
24
+ path : ' ./tdbx-vale-rules'
25
+ token : ${{secrets.GITHUB_TOKEN}}
26
+
27
+ - name : move-files-for-vale-action
28
+ run : |
29
+ cp tdbx-vale-rules/.vale.ini .vale.ini
30
+ mkdir -p .github/styles/
31
+ cp -rf tdbx-vale-rules/.github/styles/ .github/
32
+
33
+ - name : run-vale
34
+ uses : errata-ai/vale-action@reviewdog
35
+ with :
36
+ reporter : github-pr-check
37
+ files : ${{steps.files.outputs.added_modified}}
38
+ fail_on_error : true
39
+ token : ${{secrets.GITHUB_TOKEN}}
You can’t perform that action at this time.
0 commit comments