File tree Expand file tree Collapse file tree 1 file changed +27
-0
lines changed
Expand file tree Collapse file tree 1 file changed +27
-0
lines changed Original file line number Diff line number Diff line change 1+ #! /bin/bash
2+
3+ set -euo pipefail
4+
5+ cd " $( \d irname " ${0} " ) "
6+
7+ if [ -f .bump.csv.bak ]; then
8+ if [ " $( \g it status --porcelain=1 | wc -l) " -ne 0 ]; then
9+ >&2 echo " error: git repo contains uncommitted changes"
10+ exit 1
11+ fi
12+ csv=" $( \c at .bump.csv.bak) "
13+ \r m -f .bump.csv.bak
14+ while IFS=" ," read -r p v1 v2 l1 l2; do
15+ b=" ${p} -${v2} "
16+ \g it switch --create " ${b} "
17+ \p erl -i -p -e " s|\Q${l1} \E|${l2} |g" Dockerfile
18+ \g it add Dockerfile
19+ \g it 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..."
21+ \g h pr create -f -l build -l dependencies
22+ \g it checkout -
23+ done <<< " ${csv}"
24+ else
25+ >&2 echo " error: nothing to do"
26+ exit 1
27+ fi
You can’t perform that action at this time.
0 commit comments