Skip to content

Commit 7dc75b6

Browse files
authored
RUST-2136 Add manual release trigger script (#1301)
1 parent e4b196a commit 7dc75b6

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

.evergreen/release-manual-trigger.sh

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
#!/bin/bash
2+
3+
# This should only be used if the normal evergreen automation triggered by the
4+
# tag push has failed. This will manually trigger the same evergreen workflow
5+
# that the tag push would have.
6+
7+
if [[ -z "$TAG" ]]; then
8+
echo >&2 "\$TAG must be set to the git tag of the release"
9+
exit 1
10+
fi
11+
if [[ "$CONFIRM" != "YES" ]]; then
12+
echo >&2 "THIS ACTION IS IRREVOCABLE. Set \$CONFIRM to YES to validate that you really want to release a new version of the driver."
13+
exit 1
14+
fi
15+
16+
evergreen patch --path .evergreen/releases.yml -t publish-release -v all -u -p mongo-rust-driver-current --browse --param triggered_by_git_tag=${TAG}

0 commit comments

Comments
 (0)