Simplify Maven setup by removing unused settings configuration and improving readability of SonarCloud scan step.
This commit is contained in:
@@ -26,18 +26,4 @@ runs:
|
||||
path: ~/.m2/repository
|
||||
key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }}
|
||||
restore-keys: |
|
||||
${{ runner.os }}-maven-
|
||||
|
||||
- name: Set up Maven with GitHub Packages
|
||||
run: |
|
||||
echo "<settings>
|
||||
<servers>
|
||||
<server>
|
||||
<id>github-cloudflaredns</id>
|
||||
<username>th-schwarz</username>
|
||||
<password>${{ secrets.GITHUB_TOKEN }}</password>
|
||||
</server>
|
||||
</servers>
|
||||
</settings>" > ~/.m2/settings.xml
|
||||
shell:
|
||||
bash
|
||||
${{ runner.os }}-maven-
|
||||
Reference in New Issue
Block a user