@@ -2,7 +2,7 @@ name: "Patch dependencies"
22description : |
33 Patches direct dependencies of this project leveraging maven local to publish the results.
44
5- This workflow supports patching opentelemetry-java and opentelemetry-java-instrumentation repositories by executing
5+ This workflow supports patching opentelemetry-java and opentelemetry-java-contrib repositories by executing
66 the `patch.sh` script that will try to patch those repositories and after that will optionally test and then publish
77 the artifacts to maven local.
88 To add a patch you have to add a file in the `.github/patches/` directory with the name of the repository that must
4949 if [[ -f .github/patches/opentelemetry-java.patch ]]; then
5050 echo 'patch_otel_java=true' >> $GITHUB_ENV
5151 fi
52- if [[ -f .github/patches/opentelemetry-java-instrumentation.patch ]]; then
53- echo 'patch_otel_java_instrumentation=true' >> $GITHUB_ENV
54- fi
5552 if [[ -f .github/patches/opentelemetry-java-contrib.patch ]]; then
5653 echo 'patch_otel_java_contrib=true' >> $GITHUB_ENV
5754 fi
6057 - name : Clone and patch repositories
6158 run : .github/scripts/patch.sh
6259 if : ${{ env.patch_otel_java == 'true' ||
63- env.patch_otel_java_instrumentation == 'true' ||
6460 env.patch_otel_java_contrib == 'true' }}
6561 shell : bash
6662
@@ -101,22 +97,3 @@ runs:
10197 run : rm -rf opentelemetry-java-contrib
10298 if : ${{ env.patch_otel_java_contrib == 'true' }}
10399 shell : bash
104-
105- - name : Build opentelemetry-java-instrumentation with tests
106- uses : gradle/gradle-build-action@v2
107- if : ${{ env.patch_otel_java_instrumentation == 'true' && inputs.run_tests != 'false' }}
108- with :
109- arguments : check -x spotlessCheck publishToMavenLocal
110- build-root-directory : opentelemetry-java-instrumentation
111-
112- - name : Build opentelemetry java instrumentation
113- uses : gradle/gradle-build-action@v2
114- if : ${{ env.patch_otel_java_instrumentation == 'true' && inputs.run_tests == 'false' }}
115- with :
116- arguments : publishToMavenLocal
117- build-root-directory : opentelemetry-java-instrumentation
118-
119- - name : cleanup opentelmetry-java-instrumentation
120- run : rm -rf opentelemetry-java-instrumentation
121- if : ${{ env.patch_otel_java_instrumentation == 'true' }}
122- shell : bash
0 commit comments