Skip to content

Commit 36dd90c

Browse files
authored
Add ability to use release bot creds (#654)
1 parent ae03318 commit 36dd90c

File tree

4 files changed

+8
-3
lines changed

4 files changed

+8
-3
lines changed

.evergreen/github_app/backport-pr.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ done
1717

1818
# Bootstrap the app.
1919
source utils.sh
20-
bootstrap
20+
bootstrap drivers/release-bot
2121

2222
# Run the app.
2323

.evergreen/github_app/setup-secrets.sh

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,5 +4,6 @@ set -eu
44
SCRIPT_DIR=$(dirname ${BASH_SOURCE[0]})
55
. $SCRIPT_DIR/../handle-paths.sh
66
pushd $SCRIPT_DIR > /dev/null
7-
. $SCRIPT_DIR/../secrets_handling/setup-secrets.sh drivers/comment-bot
7+
VAULT=${1:-drivers/comment-bot}
8+
. $SCRIPT_DIR/../secrets_handling/setup-secrets.sh $VAULT
89
popd > /dev/null

.evergreen/github_app/utils.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ function bootstrap() {
77
pushd $SCRIPT_DIR > /dev/null
88

99
# Bootstrap the secrets.
10-
. ./setup-secrets.sh
10+
. ./setup-secrets.sh ${1:-}
1111

1212
# Install node and activate it.
1313
bash ../install-node.sh

.evergreen/tests/test-github-app.sh

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,10 @@ pushd $DRIVERS_TOOLS/.evergreen/github_app
1010
. utils.sh
1111
bootstrap
1212
bash get-access-token.sh drivers-evergreen-tools mongodb-labs > /dev/null
13+
14+
bootstrap drivers/release-bot
15+
bash get-access-token.sh mongo-arrow mongodb-labs > /dev/null
16+
1317
popd
1418

1519
make -C ${DRIVERS_TOOLS} test

0 commit comments

Comments
 (0)