Skip to content

Commit 961f095

Browse files
authored
Docsp 24481 add workflow (#390)
* initial commit * autobuilder * rename compat file / fix dest directory * fix username * fix auth / branch check * rename include statement
1 parent 78de24c commit 961f095

File tree

3 files changed

+24
-1
lines changed

3 files changed

+24
-1
lines changed
Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
name: Push File
2+
3+
on: push
4+
5+
jobs:
6+
copy-file:
7+
runs-on: ubuntu-latest
8+
steps:
9+
- name: Checkout code
10+
uses: actions/checkout@v2
11+
12+
- name: Copy mongodb-compat table
13+
if: github.ref == 'refs/heads/master'
14+
uses: dmnemec/copy_file_to_another_repo_action@main
15+
env:
16+
API_TOKEN_GITHUB: ${{ secrets.API_TOKEN_GITHUB }}
17+
with:
18+
source_file: 'source/includes/mongodb-compatibility-table-node.rst'
19+
destination_repo: '10gen/docs-shared'
20+
destination_folder: 'dbx'
21+
user_email: 'mike.woofter@mongodb.com'
22+
user_name: 'mongoKart'
23+
commit_message: 'Auto-import from docs-node'

source/compatibility.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ The first column lists the driver version.
1717

1818
.. sharedinclude:: dbx/compatibility-table-legend.rst
1919

20-
.. include:: /includes/mongodb-compatibility-table.rst
20+
.. include:: /includes/mongodb-compatibility-table-node.rst
2121

2222
Language Compatibility
2323
----------------------

0 commit comments

Comments
 (0)