diff --git a/action.yml b/action.yml index 39802aa0435973c0f69a69e17531c9f6e6aaf810..64e077c32e4d4cc9b93a58a53a80183124dfde44 100644 --- a/action.yml +++ b/action.yml @@ -7,7 +7,7 @@ runs: # it uses env variables from github secrets for the credentials # to github, dockerhub and sonar. - name: run sonar with Maven in docker - run: ${{ github.action_path }}/mvn.sh sonar:sonar -D sonar.branch.name=$(git rev-parse --abbrev-ref HEAD|tr / _ ) -DskipTests=true -Dsonar.language=java -Dsonar.report.export.path=sonar-report.json -Dsonar.host.url=${{ env.SONAR_URL }} -Dsonar.login=${{ env.SONAR_TOKEN }} --activate-profiles sonar + run: ${{ github.action_path }}/mvn.sh sonar:sonar -D sonar.branch.name=${GITHUB_HEAD_REF-${GITHUB_REF##*/}} -DskipTests=true -Dsonar.language=java -Dsonar.report.export.path=sonar-report.json -Dsonar.host.url=${{ env.SONAR_URL }} -Dsonar.login=${{ env.SONAR_TOKEN }} --activate-profiles sonar shell: bash - name: Deploy Maven Artifacts run: ${{ github.action_path }}/mvn.sh deploy