Skip to content

Commit 36bbb97

Browse files
committed
fixup! tools: check CI availability and workload
1 parent 16f8d11 commit 36bbb97

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

‎.github/workflows/auto-start-ci.yml‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
# JENKINS_TOKEN: Jenkins token, to be used to start or resume CI
44
# Optional repository variables:
55
# AUTO_START_CI_BATCH_SIZE: maximum PRs to process per run (default: 5)
6-
# AUTO_START_CI_MAX_WORKLOAD: pause at this many running or queued PR jobs (default: 10)
6+
# AUTO_START_CI_MAX_WORKLOAD: pause at this many running or queued PR jobs (default: 15)
77
name: Auto Start CI
88

99
on:
@@ -90,4 +90,4 @@ jobs:
9090
env:
9191
GH_TOKEN: ${{ github.token }}
9292
PULL_REQUESTS: ${{ needs.get-prs-for-ci.outputs.numbers }}
93-
MAX_WORKLOAD: ${{ vars.AUTO_START_CI_MAX_WORKLOAD || '10' }}
93+
MAX_WORKLOAD: ${{ vars.AUTO_START_CI_MAX_WORKLOAD || '15' }}

‎tools/actions/start-ci.sh‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
set -xe
44

55
cqurl="${GITHUB_SERVER_URL:?}/${GITHUB_REPOSITORY:?}/actions/runs/${GITHUB_RUN_ID:?}"
6-
max_workload=${MAX_WORKLOAD:-10}
6+
max_workload=${MAX_WORKLOAD:-15}
77
case $max_workload in
88
*[!0-9]*)
99
echo '::error::AUTO_START_CI_MAX_WORKLOAD must be a non-negative integer'

0 commit comments

Comments
 (0)