Skip to content

Commit

Permalink
Add GitHub Event based SHA
Browse files Browse the repository at this point in the history
  • Loading branch information
woop committed Jul 25, 2020
1 parent 74286d6 commit ad303b5
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion infra/scripts/test-load.sh
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,12 @@ clean_up() {
exit $ARG
}

CURRENT_SHA=$(git rev-parse HEAD)

if [ "$GITHUB_EVENT_NAME" == "pull_request" ]; then
export CURRENT_SHA=$(cat "$GITHUB_EVENT_PATH" | jq -r .pull_request.head.sha)
fi

export CURRENT_SHA=$(git rev-parse HEAD)
export PROJECT_ROOT_DIR=$(git rev-parse --show-toplevel)
export COMPOSE_INTERACTIVE_NO_CLI=1

Expand Down

0 comments on commit ad303b5

Please sign in to comment.