Skip to content

Commit 8039500

Browse files
authored
Merge branch 'main' into zhaez/version-file
2 parents 5abb6d8 + 7903dbf commit 8039500

File tree

70 files changed

+4725
-5207
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

70 files changed

+4725
-5207
lines changed

.github/actions/patch-dependencies/action.yml

Lines changed: 1 addition & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ name: "Patch dependencies"
22
description: |
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
@@ -49,9 +49,6 @@ runs:
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
@@ -60,7 +57,6 @@ runs:
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

Comments
 (0)