Skip to content

Commit 3f8ee56

Browse files
committed
Github actions
1 parent 4c25df8 commit 3f8ee56

File tree

4 files changed

+106
-0
lines changed

4 files changed

+106
-0
lines changed

.github/pull_request_template.md

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
# Pull Request Info
2+
3+
[PR Reviewing Guidelines](https://github.com/mongodb/docs-golang/blob/master/REVIEWING.md)
4+
5+
JIRA - <https://jira.mongodb.org/browse/DOCSP-NNNNN>
6+
Staging - <https://docs-mongodbcom-staging.corp.mongodb.com/drivers/docsworker-xlarge/NNNNN/>
7+
8+
## Self-Review Checklist
9+
10+
- [ ] Is this free of any warnings or errors in the RST?
11+
- [ ] Did you run a spell-check?
12+
- [ ] Did you run a grammar-check?
13+
- [ ] Are all the links working?
14+
- [ ] Are the [facets and meta keywords](https://wiki.corp.mongodb.com/display/DE/Docs+Taxonomy) accurate?
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
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
Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
name: Copy Files to docs-shared
2+
3+
on:
4+
push:
5+
branches:
6+
- "master"
7+
paths:
8+
- "source/includes/mongodb-compatibility-table-c.rst"
9+
- "source/includes/language-compatibility-table-c.rst"
10+
11+
jobs:
12+
copy-file:
13+
runs-on: ubuntu-latest
14+
steps:
15+
- name: Checkout code
16+
uses: actions/checkout@v2
17+
18+
- name: Copy mongodb-compat table
19+
uses: dmnemec/copy_file_to_another_repo_action@main
20+
env:
21+
API_TOKEN_GITHUB: ${{ secrets.API_TOKEN_GITHUB }}
22+
with:
23+
source_file: "source/includes/mongodb-compatibility-table-c.rst"
24+
destination_repo: "10gen/docs-shared"
25+
destination_folder: "dbx"
26+
user_email: "[email protected]"
27+
user_name: "docs-builder-bot"
28+
commit_message: "Auto-import from docs-c"
29+
30+
- name: Copy language-compat table
31+
uses: dmnemec/copy_file_to_another_repo_action@main
32+
env:
33+
API_TOKEN_GITHUB: ${{ secrets.API_TOKEN_GITHUB }}
34+
with:
35+
source_file: "source/includes/language-compatibility-table-c.rst"
36+
destination_repo: "10gen/docs-shared"
37+
destination_folder: "dbx"
38+
user_email: "[email protected]"
39+
user_name: "docs-builder-bot"
40+
commit_message: "Auto-import from docs-c"

.github/workflows/vale-tdbx.yml

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
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@master
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@master
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}}

0 commit comments

Comments
 (0)