Skip to content

Commit c8b50b2

Browse files
authored
[CI] Add new entries to skip triggering Buildkite builds (#13982)
Allow also to skip triggering Buildkite builds if Pull Requests just update .buildkite/pull-requests.json or catalog-info.yaml. This also applies when checking for non-package files modified to select which packages are tested.
1 parent 7785eb1 commit c8b50b2

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

.buildkite/pull-requests.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
"always_trigger_comment_regex": "^(?:(?:buildkite\\W+)?(?:build|test)\\W+(?:this|it))|^/test$|^/test benchmark fullreport$",
1414
"skip_ci_labels": [],
1515
"skip_target_branches": [],
16-
"skip_ci_on_only_changed": ["^.github/workflows/", "^.github/dependabot.yml", "^.github/ISSUE_TEMPLATE/", "^docs/"],
16+
"skip_ci_on_only_changed": ["^.github/workflows/", "^.github/dependabot.yml$", "^.github/ISSUE_TEMPLATE/", "^docs/", "^catalog-info.yaml$", "^.buildkite/pull-requests.json$"],
1717
"always_require_ci_on_changed": []
1818
},
1919
{

.buildkite/scripts/common.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -746,7 +746,7 @@ is_pr_affected() {
746746
# Example:
747747
# https://buildkite.com/elastic/integrations/builds/25606
748748
# https://github.com/elastic/integrations/pull/13810
749-
if git diff --name-only "${commit_merge}" "${to}" | grep -E -v '^(packages/|\.github/(CODEOWNERS|ISSUE_TEMPLATE|PULL_REQUEST_TEMPLATE)|README\.md|docs/)' > /dev/null; then
749+
if git diff --name-only "${commit_merge}" "${to}" | grep -E -v '^(packages/|\.github/(CODEOWNERS|ISSUE_TEMPLATE|PULL_REQUEST_TEMPLATE)|README\.md|docs/|catalog-info\.yaml|\.buildkite/pull-requests\.json)' > /dev/null; then
750750
echo "[${package}] PR is affected: found non-package files"
751751
return 0
752752
fi

0 commit comments

Comments
 (0)