Commit 4cd7d59 1 parent b20a22d commit 4cd7d59 Copy full SHA for 4cd7d59
File tree 2 files changed +13
-0
lines changed
.github/workflows/scripts
2 files changed +13
-0
lines changed Original file line number Diff line number Diff line change 3
3
UPDATE_YAML=" yq eval -i"
4
4
GIT=git
5
5
GH=gh
6
+ NPM=npm
6
7
FILES=" ${FILES:- ./ data/ registry/* .yml} "
7
8
8
9
@@ -16,6 +17,7 @@ elif [[ "$1" != "-f" ]]; then
16
17
UPDATE_YAML=" yq eval"
17
18
GIT=" echo > DRY RUN: git "
18
19
GH=" echo > DRY RUN: gh "
20
+ NPM=" echo > DRY RUN: npm "
19
21
else
20
22
# Local execution with -f flag (force real vs. dry run)
21
23
shift
@@ -59,6 +61,12 @@ for yaml_file in ${FILES}; do
59
61
hex)
60
62
curl -s " https://hex.pm/api/packages/$package_name " | jq -r ' .releases | max_by(.inserted_at) | .version'
61
63
;;
64
+ maven)
65
+ groupid=$( echo " ${package_name} " | cut -d/ -f1)
66
+ artifactid=$( echo " ${package_name} " | cut -d/ -f2)
67
+ # curl -s "https://search.maven.org/solrsearch/select?q=g:com.google.inject+AND+a:guice&core=gav&rows=20&wt=json" | jq -r '.response.docs[0].v'
68
+ curl -s " https://search.maven.org/solrsearch/select?q=g:${groupid} +AND+a:${artifactid} &core=gav&rows=20&wt=json" | jq -r ' .response.docs[0].v'
69
+ ;;
62
70
* )
63
71
echo " Registry not supported."
64
72
;;
@@ -110,6 +118,8 @@ if [ "$existing_pr_count" -gt 0 ]; then
110
118
exit 0
111
119
fi
112
120
121
+ $NPM run fix:format
122
+
113
123
$GIT checkout -b " $branch "
114
124
$GIT commit -a -m " $message "
115
125
$GIT push --set-upstream origin " $branch "
Original file line number Diff line number Diff line change 15
15
repo : https://github.com/open-telemetry/opentelemetry-java-instrumentation/tree/main/instrumentation/finatra-2.9
16
16
createdAt : 2020-11-05
17
17
isFirstParty : false
18
+ package :
19
+ registry : maven
20
+ name : io.opentelemetry.javaagent.instrumentation/opentelemetry-javaagent-finatra-2.9
You can’t perform that action at this time.
0 commit comments