mirror of
https://github.com/kevinveenbirkenbach/computer-playbook.git
synced 2026-11-29 14:30:52 +00:00
test(act): allow configurable concurrent jobs (default 5)
This commit is contained in:
1 file changed
+4
@@ -9,6 +9,7 @@ set -euo pipefail
|
||||
: "${ACT_NETWORK:=host}"
|
||||
: "${ACT_PULL:=false}"
|
||||
: "${ACT_RM:=true}"
|
||||
: "${ACT_CONCURRENT_JOBS:=5}"
|
||||
: "${ACT_PLATFORM_IMAGE:=catthehacker/ubuntu:act-latest}"
|
||||
|
||||
echo "=== act: workflow=${ACT_WORKFLOW} event=${ACT_EVENT} job=${ACT_JOB:-<all>} matrix=${ACT_MATRIX:-<none>} ==="
|
||||
@@ -31,6 +32,9 @@ fi
|
||||
if [[ -n "${ACT_NETWORK}" ]]; then
|
||||
cmd+=(--network "${ACT_NETWORK}")
|
||||
fi
|
||||
if [[ -n "${ACT_CONCURRENT_JOBS}" ]]; then
|
||||
cmd+=(--concurrent-jobs "${ACT_CONCURRENT_JOBS}")
|
||||
fi
|
||||
|
||||
cmd+=(--pull="${ACT_PULL}")
|
||||
if [[ "${ACT_RM}" == "true" ]]; then
|
||||
|
||||
Reference in new issue
Block a user