mirror of
https://github.com/JustArchiNET/ArchiSteamFarm.git
synced 2026-01-10 13:44:22 +00:00
CD: Fix non-working limit of jobs
This commit is contained in:
11
.github/workflows/publish.yml
vendored
11
.github/workflows/publish.yml
vendored
@@ -199,11 +199,20 @@ jobs:
|
||||
for variant in $VARIANTS; do
|
||||
publish "$variant" &
|
||||
|
||||
while [ "$(jobs -p | wc -l)" -ge "$MAX_JOBS" ]; do
|
||||
while :; do
|
||||
# We can't capture jobs -p result directly in POSIX sh
|
||||
jobs -p > "/tmp/asf-publish-jobs.txt"
|
||||
|
||||
if [ "$(wc -l < "/tmp/asf-publish-jobs.txt")" -lt "$MAX_JOBS" ]; then
|
||||
break
|
||||
fi
|
||||
|
||||
sleep 1
|
||||
done
|
||||
done
|
||||
|
||||
rm -f "/tmp/asf-publish-jobs.txt"
|
||||
|
||||
wait
|
||||
|
||||
- name: Publish ArchiSteamFarm on Windows
|
||||
|
||||
Reference in New Issue
Block a user