-
Notifications
You must be signed in to change notification settings - Fork 24
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
VER-94860 auto process result (#901)
This PR add steps in E2E test to: Check if the job is success, if success, we will call a sync script which will ask Vcluster to merge certain branch to master. We will notify E2E test result to a teams channel for checking the job status. The previous PR with conversation can be found under #859
- Loading branch information
1 parent
5db3ec0
commit 6ead47f
Showing
2 changed files
with
66 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
#!/bin/bash | ||
|
||
SOURCE_BRANCH=$1 | ||
TARGET_BRANCH=$2 | ||
GITHUB_CRED=$3 | ||
GITHUB_OWNER=vertica | ||
GITHUB_REPO=vcluster | ||
|
||
curl -L -v \ | ||
-X POST \ | ||
-H "Accept: application/vnd.github+json" \ | ||
-H "Authorization: Bearer $GITHUB_CRED" \ | ||
-H "X-GitHub-Api-Version: 2022-11-28" \ | ||
https://api.github.com/repos/$GITHUB_OWNER/$GITHUB_REPO/dispatches \ | ||
-d '{"event_type": "curl_request_merge", "client_payload":{"source_branch":"'"$SOURCE_BRANCH"'","target_branch":"'"$TARGET_BRANCH"'"}}' |