File tree Expand file tree Collapse file tree 2 files changed +33
-0
lines changed
private/tools/java/com/github/bazelbuild/rules_jvm_external Expand file tree Collapse file tree 2 files changed +33
-0
lines changed Original file line number Diff line number Diff line change 1+ name : Build and deploy tools
2+ run-name : Build and deploy tools
3+ on : [push]
4+ jobs :
5+ build-deploy-tools :
6+ runs-on : ubuntu-latest
7+ permissions :
8+ pull-requests : read
9+ steps :
10+ - name : Check out repository code
11+ uses : actions/checkout@v4
12+ - name : Get changed files
13+ id : changed-files
14+ uses : tj-actions/changed-files@v39
15+ - name : Refresh prebuilts if affected files changed
16+ run : |
17+ for file in ${{ steps.changed-files.outputs.all_changed_files }}; do
18+ echo "$file was changed"
19+ label=$(bazel query "$file" || true)
20+ if [[ ! -z $label ]]; then
21+ bazel query "kind(java_binary, rdeps(//private/tools/java/..., $label))" >> /tmp/affected_targets
22+ fi
23+ done
24+ if [[ $(wc -l /tmp/affected_targets) -ne 0 ]]; then
25+ bazelisk run //scripts:refresh-prebuilts
26+ fi
27+ - name : Upload Artifact
28+ uses : actions/upload-artifact@v3
29+ with :
30+ name : outdated_deploy.jar
31+ path : bazel-bin/private/tools/java/com/github/bazelbuild/rules_jvm_external/maven/outdated_deploy.jar
32+ retention-days : 5
Original file line number Diff line number Diff line change @@ -28,6 +28,7 @@ public Coordinates(String coordinates) {
2828 groupId = Objects .requireNonNull (parts [0 ]);
2929 artifactId = Objects .requireNonNull (parts [1 ]);
3030
31+
3132 if (parts .length == 2 ) {
3233 extension = "jar" ;
3334 classifier = "" ;
You can’t perform that action at this time.
0 commit comments