Skip to content

Commit

Permalink
Fix dependabot-pr.sh (#5025)
Browse files Browse the repository at this point in the history
The PR title format has changed. Update script accordingly.
  • Loading branch information
MrAlias authored Mar 3, 2024
1 parent a7034da commit fbf26d2
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions .github/workflows/scripts/dependabot-pr.sh
Original file line number Diff line number Diff line change
Expand Up @@ -18,15 +18,15 @@ declare -A mods

for line in $requests; do
echo $line
if [[ $line != Bump* ]]; then
if [[ $line != build* ]]; then
continue
fi

module=$(echo $line | cut -f 2 -d " ")
module=$(echo $line | cut -f 3 -d " ")
if [[ $module == go.opentelemetry.io/otel* ]]; then
continue
fi
version=$(echo $line | cut -f 6 -d " ")
version=$(echo $line | cut -f 7 -d " ")

mods[$module]=$version
message+=$line
Expand All @@ -42,8 +42,7 @@ for module version in ${(kv)mods}; do
done
done

make go-mod-tidy
make build
make go-mod-tidy golangci-lint-fix build

git add go.sum go.mod
git add "**/go.sum" "**/go.mod"
Expand Down

0 comments on commit fbf26d2

Please sign in to comment.