Skip to content

Commit 0f39789

Browse files
authored
Cleanup patch repositories after build (#328)
Signed-off-by: Raphael Silva <[email protected]>
1 parent 1fb0af0 commit 0f39789

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

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

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,11 @@ runs:
6565
GPG_PRIVATE_KEY: ${{ inputs.gpg_private_key }}
6666
GPG_PASSWORD: ${{ inputs.gpg_password }}
6767

68+
- name: cleanup opentelemetry-java
69+
run: rm -rf opentelemetry-java
70+
if: ${{ env.patch_otel_java == 'true' }}
71+
shell: bash
72+
6873
- name: Build opentelemetry-java-contrib with tests
6974
uses: gradle/gradle-build-action@v2
7075
if: ${{ env.patch_otel_java_contrib == 'true' && inputs.run_tests != 'false' }}
@@ -85,6 +90,11 @@ runs:
8590
GPG_PRIVATE_KEY: ${{ inputs.gpg_private_key }}
8691
GPG_PASSWORD: ${{ inputs.gpg_password }}
8792

93+
- name: cleanup opentelemetry-java-contrib
94+
run: rm -rf opentelemetry-java-contrib
95+
if: ${{ env.patch_otel_java_contrib == 'true' }}
96+
shell: bash
97+
8898
- name: Build opentelemetry-java-instrumentation with tests
8999
uses: gradle/gradle-build-action@v2
90100
if: ${{ env.patch_otel_java_instrumentation == 'true' && inputs.run_tests != 'false' }}
@@ -104,3 +114,8 @@ runs:
104114
env:
105115
GPG_PRIVATE_KEY: ${{ inputs.gpg_private_key }}
106116
GPG_PASSWORD: ${{ inputs.gpg_password }}
117+
118+
- name: cleanup opentelmetry-java-instrumentation
119+
run: rm -rf opentelemetry-java-instrumentation
120+
if: ${{ env.patch_otel_java_instrumentation == 'true' }}
121+
shell: bash

0 commit comments

Comments
 (0)