Exclude GitBook synchronization commits from CI (#5929)
This commit is contained in:
@ -15,12 +15,17 @@ if [[ -n $BUILDKITE_TAG ]]; then
|
|||||||
"https://github.com/solana-labs/solana/releases/$BUILDKITE_TAG"
|
"https://github.com/solana-labs/solana/releases/$BUILDKITE_TAG"
|
||||||
buildkite-agent pipeline upload ci/buildkite-release.yml
|
buildkite-agent pipeline upload ci/buildkite-release.yml
|
||||||
else
|
else
|
||||||
|
if [[ $BUILDKITE_BRANCH =~ ^pull ]]; then
|
||||||
|
# Add helpful link back to the corresponding Github Pull Request
|
||||||
|
buildkite-agent annotate --style info --context pr-backlink \
|
||||||
|
"Github Pull Request: https://github.com/solana-labs/solana/$BUILDKITE_BRANCH"
|
||||||
|
fi
|
||||||
|
|
||||||
|
if [[ $BUILDKITE_MESSAGE =~ GitBook: ]]; then
|
||||||
|
buildkite-agent annotate --style info --context gitbook-ci-skip \
|
||||||
|
"GitBook commit detected, CI skipped"
|
||||||
|
exit
|
||||||
|
fi
|
||||||
|
|
||||||
buildkite-agent pipeline upload ci/buildkite.yml
|
buildkite-agent pipeline upload ci/buildkite.yml
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [[ $BUILDKITE_BRANCH =~ ^pull ]]; then
|
|
||||||
# Add helpful link back to the corresponding Github Pull Request
|
|
||||||
buildkite-agent annotate --style info --context pr-backlink \
|
|
||||||
"Github Pull Request: https://github.com/solana-labs/solana/$BUILDKITE_BRANCH"
|
|
||||||
fi
|
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user