File tree Expand file tree Collapse file tree 2 files changed +6
-3
lines changed Expand file tree Collapse file tree 2 files changed +6
-3
lines changed Original file line number Diff line number Diff line change @@ -13,8 +13,8 @@ if [ -f /.dockerenv ]; then
13
13
14
14
u=$( \a pk -u list | \t r ' \n' ' |' )
15
15
16
+ \r m -f .bump.csv.bak
16
17
\s ed -e :a -e ' /\\$/N; s/\\\n//; ta' Dockerfile | \g rep -o -e ' apk[^\&\;]*add[^\&\;]*' | \g rep -o -e ' [^ ]*=[^ ]*' | while IFS= read -r l; do
17
- \r m -f .bump.csv.bak
18
18
p=" ${l% =* } "
19
19
v1=" ${l#* =} "
20
20
v=" $( echo " |${u} " | \g rep -o -e " \|${p} -[^\|]*upgradable from: ${p} -${v1} " || true) "
Original file line number Diff line number Diff line change @@ -9,6 +9,7 @@ if [ -f .bump.csv.bak ]; then
9
9
>&2 echo " error: git repo contains uncommitted changes"
10
10
exit 1
11
11
fi
12
+ \g it pull
12
13
csv=" $( \c at .bump.csv.bak) "
13
14
\r m -f .bump.csv.bak
14
15
while IFS=' ,' read -r p v1 v2 l1 l2; do
@@ -17,10 +18,12 @@ if [ -f .bump.csv.bak ]; then
17
18
\p erl -i -p -e " s|\Q${l1} \E|${l2} |g" Dockerfile
18
19
\g it add Dockerfile
19
20
\g it commit -S -m " build(deps): bump ${p} from ${v1} to ${v2} "
20
- echo " Please review and push commit in branch \" ${b} \" . Waiting..."
21
- while [ " $( git rev-list --count --left -only ' @{u} ...HEAD' ) " -gt 0 ]; do
21
+ echo -n " Please review and push commit in branch \" ${b} \" . Waiting..."
22
+ while [ " $( git rev-list --count --right -only ' origin ...HEAD' ) " -gt 0 ]; do
22
23
\s leep 1
24
+ \e cho -n .
23
25
done
26
+ \e cho
24
27
\g h pr create -f -l build -l dependencies
25
28
\g it checkout -
26
29
done <<< " ${csv}"
You can’t perform that action at this time.
0 commit comments