Skip to content

Commit 703dc99

Browse files
authored
grep the correct thing! (#332)
1 parent 1733362 commit 703dc99

1 file changed

Lines changed: 7 additions & 3 deletions

File tree

.github/scripts/renovate_bump.sh

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,11 @@ app_path=$1
44
update_type=$2
55
dep_name=$3
66
dep_version=$4
7-
log_path="./renovate.log"
7+
log_path="/tmp/renovate.log"
8+
9+
if [ ! -f "$log_path" ]; then
10+
touch "$log_path"
11+
fi
812

913
if [[ -z "$app_path" ]]; then
1014
echo "Missing app_path"
@@ -16,7 +20,7 @@ if [[ -z "$update_type" ]]; then
1620
exit 1
1721
fi
1822

19-
if grep "{{{packageFileDir}}}" "$log_path"; then
23+
if grep "$app_path" "$log_path"; then
2024
exit 0
2125
fi
2226

@@ -29,4 +33,4 @@ docker run --quiet --rm \
2933
--dep-name "$dep_name" \
3034
--dep-version "$dep_version"
3135

32-
echo "$app_path" >>"$log_path"
36+
echo "$app_path" >>"$log_path"

0 commit comments

Comments
 (0)