We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6305711 commit 7829535Copy full SHA for 7829535
.buildkite/scripts/build_pr_teardown.sh
@@ -1,15 +1,15 @@
1
#!/usr/bin/env bash
2
3
set -euo pipefail
4
-echo "debug"
+
5
# This hook should only be invoked for builds triggered by the Buildkite PR bot
6
if [ -z ${GITHUB_PR_OWNER+set} ] || [ -z ${GITHUB_PR_REPO+set} ] || [ -z ${GITHUB_PR_TRIGGERED_SHA+set} ];then
7
exit 0
8
fi
9
-echo "running now"
10
gitHubToken=$(vault read -field=value secret/ci/elastic-docs/docs_preview_cleaner)
11
12
-if [ -n "$BUILDKITE_COMMAND_EXIT_STATUS" ] && [ "$BUILDKITE_COMMAND_EXIT_STATUS" -eq "0" ];then
+if [ $$(buildkite-agent step get "outcome" --step "build-pr") == "passed" ]; then
13
status_state="success"
14
else
15
status_state="failure"
0 commit comments