Skip to content

Commit

Permalink
override params
Browse files Browse the repository at this point in the history
  • Loading branch information
nkammah committed Dec 8, 2023
1 parent f1c1b67 commit db78551
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions .buildkite/scripts/build_pr.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,14 @@
set -euo pipefail
set +x

GITHUB_PR_BRANCH="${PR_BRANCH:=do-not-merge-buildkite-validation}"
GITHUB_PR_TARGET_BRANCH="${PR_TARGET_BRANCH:=main}"
GITHUB_PR_NUMBER="${PR_NUMBER:=4392}"
GITHUB_PR_BASE_REPO="${PR_BASE_REPO:=security-docs}"

echo $GITHUB_PR_BRANCH $GITHUB_PR_TARGET_BRANCH $GITHUB_PR_NUMBER $GITHUB_PR_BASE_REPO
exit 0

# This script should only be invoked by the Buildkite PR bot
if [ -z ${GITHUB_PR_BRANCH+set} ] || [ -z ${GITHUB_PR_TARGET_BRANCH+set} ] || [ -z ${GITHUB_PR_NUMBER+set} ] || [ -z ${GITHUB_PR_BASE_REPO+set} ];then
echo "One of the following env. variable GITHUB_PR_BRANCH, GITHUB_PR_TARGET_BRANCH, GITHUB_PR_NUMBER, GITHUB_PR_BASE_REPO is missing - exiting."
Expand Down

0 comments on commit db78551

Please sign in to comment.