Skip to content

Commit 39a34f5

Browse files
author
Steve Kirkland
committed
Only run full builds on next when FULL_SCHEDULED_BUILD is set
1 parent e5e526e commit 39a34f5

2 files changed

Lines changed: 6 additions & 1 deletion

File tree

.buildkite/pipeline_trigger.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ const ignoredFiles = ["README.md", "LICENSE.txt", ".gitignore", "TESTING.md", "o
88
const baseBranch = process.env.BUILDKITE_PULL_REQUEST_BASE_BRANCH;
99
const currentBranch = process.env.BUILDKITE_BRANCH;
1010
const commitMessage = process.env.BUILDKITE_MESSAGE || "";
11+
const isFullBuild = process.env.FULL_SCHEDULED_BUILD === "1";
1112

1213
if (baseBranch) {
1314
console.log(`Fetching latest changes from ${baseBranch}`);
@@ -21,7 +22,8 @@ packageManifest.forEach(({ paths, block, pipeline }) => {
2122
let upload = false;
2223

2324
if (commitMessage.includes("[full ci]") ||
24-
["next", "main"].includes(currentBranch) ||
25+
isFullBuild ||
26+
["main"].includes(currentBranch) ||
2527
["main"].includes(baseBranch)) {
2628
console.log(`Upload pipeline file: ${pipeline}`);
2729
execSync(`buildkite-agent pipeline upload ${pipeline}`);

.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,3 +19,6 @@ compile_commands.json
1919
.cache
2020
.clangd
2121
Gemfile.lock
22+
# IDE files
23+
.idea/
24+
*.iml

0 commit comments

Comments
 (0)