Skip to content

Commit 610ccba

Browse files
GA Migration Adding Removal of /.m2/settings.xml (#23481)
* adding removal of /.m2/settings.xml * running rm command in the same step as the gradle command * Update .github/actions/gradle-command-self-hosted-action/action.yml Co-authored-by: Danny McCormick <dannymccormick@google.com> * Update action.yml Co-authored-by: Danny McCormick <dannymccormick@google.com>
1 parent d9ae118 commit 610ccba

2 files changed

Lines changed: 4 additions & 7 deletions

File tree

.github/actions/gradle-command-self-hosted-action/action.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,5 +41,9 @@ runs:
4141
- name: Run Gradle Command
4242
shell: bash
4343
run: |
44+
# Removing settings.xml is a workaround to avoid a decryption issue
45+
# of Beam's gradle-command-action plugin and github's provided
46+
# maven settings.xml file
47+
rm ~/.m2/settings.xml
4448
./gradlew ${{ inputs.gradle-command }} --max-workers=${{ inputs.max-workers }} ${{ inputs.arguments }} \
4549
${{ inputs.default-arguments }}

.github/actions/setup-self-hosted-action/action.yml

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -68,10 +68,3 @@ runs:
6868
uses: actions/setup-go@v3
6969
with:
7070
go-version: '1.18.0'
71-
- name: Remove default github maven configuration
72-
if: ${{ inputs.requires-java-8 == 'true' }}
73-
# This step is a workaround to avoid a decryption issue of Beam's
74-
# gradle-command-action plugin and github's provided maven
75-
# settings.xml file
76-
shell: bash
77-
run: rm ~/.m2/settings.xml

0 commit comments

Comments
 (0)