Skip to content

Commit 048ebe6

Browse files
committed
ci(bump): read doesn't work in subshell, use wait for now
1 parent 1c4fa12 commit 048ebe6

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

aws-cli/create-bump-prs.sh

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,12 +12,15 @@ if [ -f .bump.csv.bak ]; then
1212
csv="$(\cat .bump.csv.bak)"
1313
\rm -f .bump.csv.bak
1414
while IFS="," read -r p v1 v2 l1 l2; do
15-
b="${p}-${v2}"
15+
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}"
20-
read -n 1 -s -r -p "Please review and push commit in branch \"${b}\". Press enter to continue..."
20+
echo "Please review and push commit in branch \"${b}\". Waiting..."
21+
while \git status | \grep -Fq "Your branch is ahead"; do
22+
\sleep 1
23+
done
2124
\gh pr create -f -l build -l dependencies
2225
\git checkout -
2326
done <<<"${csv}"

0 commit comments

Comments
 (0)