Skip to content

Commit 3ec2744

Browse files
authored
[DOCSP-24481] workflow push for specific files only (#394)
* workflow push for specific files only * rename language-compat file
1 parent c92fc52 commit 3ec2744

File tree

3 files changed

+21
-4
lines changed

3 files changed

+21
-4
lines changed

.github/workflows/copy-compat-to-docs-shared.yml

Lines changed: 20 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,12 @@
1-
name: Push File
1+
name: Copy Files to docs-shared
22

3-
on: push
3+
on:
4+
push:
5+
branches:
6+
- 'master'
7+
paths:
8+
- 'source/includes/mongodb-compatibility-table-node.rst'
9+
- 'source/includes/language-compatibility-table-node.rst'
410

511
jobs:
612
copy-file:
@@ -10,7 +16,6 @@ jobs:
1016
uses: actions/checkout@v2
1117

1218
- name: Copy mongodb-compat table
13-
if: github.ref == 'refs/heads/master'
1419
uses: dmnemec/copy_file_to_another_repo_action@main
1520
env:
1621
API_TOKEN_GITHUB: ${{ secrets.API_TOKEN_GITHUB }}
@@ -20,4 +25,16 @@ jobs:
2025
destination_folder: 'dbx'
2126
user_email: 'mike.woofter@mongodb.com'
2227
user_name: 'mongoKart'
28+
commit_message: 'Auto-import from docs-node'
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-node.rst'
36+
destination_repo: '10gen/docs-shared'
37+
destination_folder: 'dbx'
38+
user_email: 'mike.woofter@mongodb.com'
39+
user_name: 'mongoKart'
2340
commit_message: 'Auto-import from docs-node'

source/compatibility.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ the {+driver-long+} for use with a specific version of Node.js.
2626

2727
The first column lists the driver version.
2828

29-
.. include:: /includes/language-compatibility-table.rst
29+
.. include:: /includes/language-compatibility-table-node.rst
3030

3131
For more information on how to read the compatibility tables, see our guide on
3232
:ref:`MongoDB Compatibility Tables. <about-driver-compatibility>`
File renamed without changes.

0 commit comments

Comments
 (0)