@@ -65,41 +65,41 @@ jobs:
6565 - name : Create pom.xml if not exists
6666 working-directory : ${{ inputs.working-directory }}
6767 run : |
68- cat <<EOF > pom.xml
69- <?xml version="1.0"?>
70- <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
71- <modelVersion>4.0.0</modelVersion>
72- <groupId>com.github.fabriciofx.github.workflows</groupId>
73- <artifactId>sonar-template</artifactId>
74- <version>0.0.1</version>
75- <profiles>
76- <profile>
77- <id>sonar</id>
78- <properties>
79- <sonar.host.url>${{ inputs.sonar_host_url }}</sonar.host.url>
80- <sonar.organization>${{ inputs.sonar_organization }}</sonar.organization>
81- <sonar.projectKey>${{ inputs.sonar_project_key }}</sonar.projectKey>
82- </properties>
83- <build>
84- <plugins>
85- <plugin>
86- <groupId>org.sonarsource.scanner.maven</groupId>
87- <artifactId>sonar-maven-plugin</artifactId>
88- <version>5.2.0.4988</version>
89- <executions>
90- <execution>
91- <phase>package</phase>
92- <goals>
93- <goal>sonar</goal>
94- </goals>
95- </execution>
96- </executions>
97- </plugin>
98- </plugins>
99- </build>
100- </profile>
101- </profiles>
102- </project>
68+ cat > pom.xml <<EOF
69+ <?xml version="1.0"?>
70+ <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
71+ <modelVersion>4.0.0</modelVersion>
72+ <groupId>com.github.fabriciofx.github.workflows</groupId>
73+ <artifactId>sonar-template</artifactId>
74+ <version>0.0.1</version>
75+ <profiles>
76+ <profile>
77+ <id>sonar</id>
78+ <properties>
79+ <sonar.host.url>${{ inputs.sonar_host_url }}</sonar.host.url>
80+ <sonar.organization>${{ inputs.sonar_organization }}</sonar.organization>
81+ <sonar.projectKey>${{ inputs.sonar_project_key }}</sonar.projectKey>
82+ </properties>
83+ <build>
84+ <plugins>
85+ <plugin>
86+ <groupId>org.sonarsource.scanner.maven</groupId>
87+ <artifactId>sonar-maven-plugin</artifactId>
88+ <version>5.2.0.4988</version>
89+ <executions>
90+ <execution>
91+ <phase>package</phase>
92+ <goals>
93+ <goal>sonar</goal>
94+ </goals>
95+ </execution>
96+ </executions>
97+ </plugin>
98+ </plugins>
99+ </build>
100+ </profile>
101+ </profiles>
102+ </project>
103103 EOF
104104 - name : Run Sonar
105105 working-directory : ${{ inputs.working-directory }}
0 commit comments