Skip to content

Commit 10241ca

Browse files
committed
ci(bump): fix wait
1 parent b711560 commit 10241ca

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

xml/create-bump-prs.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#!/bin/bash
2-
32
set -euo pipefail
3+
IFS=$'\n\t'
44

55
cd "$(\dirname "${0}")"
66

@@ -11,14 +11,14 @@ if [ -f .bump.csv.bak ]; then
1111
fi
1212
csv="$(\cat .bump.csv.bak)"
1313
\rm -f .bump.csv.bak
14-
while IFS="," read -r p v1 v2 l1 l2; do
14+
while IFS=',' read -r p v1 v2 l1 l2; do
1515
b="${p}-${v2//[\~\:]/-}"
1616
\git switch --create "${b}"
1717
\perl -i -p -e "s|\Q${l1}\E|${l2}|g" Dockerfile
1818
\git add Dockerfile
1919
\git commit -S -m "build(deps): bump ${p} from ${v1} to ${v2}"
2020
echo "Please review and push commit in branch \"${b}\". Waiting..."
21-
while \git status | \grep -Fq "Your branch is ahead"; do
21+
while [ "$(git rev-list --count --left-only '@{u}...HEAD')" -gt 0 ]; do
2222
\sleep 1
2323
done
2424
\gh pr create -f -l build -l dependencies

0 commit comments

Comments
 (0)