Skip to content

Commit 083628b

Browse files
authored
make env available to all jobs (#417)
1 parent 3ec2744 commit 083628b

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

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

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,8 @@ on:
77
paths:
88
- 'source/includes/mongodb-compatibility-table-node.rst'
99
- 'source/includes/language-compatibility-table-node.rst'
10+
env:
11+
API_TOKEN_GITHUB: ${{ secrets.API_TOKEN_GITHUB }}
1012

1113
jobs:
1214
copy-file:
@@ -17,8 +19,6 @@ jobs:
1719

1820
- name: Copy mongodb-compat table
1921
uses: dmnemec/copy_file_to_another_repo_action@main
20-
env:
21-
API_TOKEN_GITHUB: ${{ secrets.API_TOKEN_GITHUB }}
2222
with:
2323
source_file: 'source/includes/mongodb-compatibility-table-node.rst'
2424
destination_repo: '10gen/docs-shared'
@@ -29,12 +29,10 @@ jobs:
2929

3030
- name: Copy language-compat table
3131
uses: dmnemec/copy_file_to_another_repo_action@main
32-
env:
33-
API_TOKEN_GITHUB: ${{ secrets.API_TOKEN_GITHUB }}
3432
with:
3533
source_file: 'source/includes/language-compatibility-table-node.rst'
3634
destination_repo: '10gen/docs-shared'
3735
destination_folder: 'dbx'
3836
user_email: '[email protected]'
3937
user_name: 'mongoKart'
40-
commit_message: 'Auto-import from docs-node'
38+
commit_message: 'Auto-import from docs-node'

0 commit comments

Comments
 (0)