Skip to content

Commit 3ee3224

Browse files
committed
bash evaluation as opposed to gha.
1 parent c4b444d commit 3ee3224

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

.github/workflows/sonar-check.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,8 @@ jobs:
6565
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
6666
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
6767
PR_ID: ${{ github.event.pull_request.number }}
68+
HEADREF: ${{ github.event.pull_request.head.ref }}
6869
run: |
6970
git clone https://github.com/shapeblue/cloudstack-nonoss.git nonoss
7071
cd nonoss && bash -x install-non-oss.sh && cd ..
71-
mvn -P quality -Dsimulator -Dnoredist clean install org.sonarsource.scanner.maven:sonar-maven-plugin:sonar -Dsonar.projectKey=apache_cloudstack -Dsonar.pullrequest.key=$PR_ID -Dsonar.pullrequest.branch=${{ github.event.pull_request.head.ref }} -Dsonar.pullrequest.github.repository=apache/cloudstack -Dsonar.pullrequest.provider=GitHub -Dsonar.pullrequest.github.summary_comment=true
72+
mvn -P quality -Dsimulator -Dnoredist clean install org.sonarsource.scanner.maven:sonar-maven-plugin:sonar -Dsonar.projectKey=apache_cloudstack -Dsonar.pullrequest.key=$PR_ID -Dsonar.pullrequest.branch=$HEADREF -Dsonar.pullrequest.github.repository=apache/cloudstack -Dsonar.pullrequest.provider=GitHub -Dsonar.pullrequest.github.summary_comment=true

0 commit comments

Comments
 (0)