Skip to content

Commit

Permalink
Issue #ED-4414 fix: android build script test16
Browse files Browse the repository at this point in the history
  • Loading branch information
vpPavithra committed Jun 20, 2024
1 parent 9b8dc63 commit cdb18c2
Showing 1 changed file with 4 additions and 9 deletions.
13 changes: 4 additions & 9 deletions .github/workflows/sonar.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,25 +23,20 @@ jobs:
run: sudo npm install -g sonarqube-scanner@3.5.0

- name: Debug Event Payload
run: echo "${{ toJson(github.event) }}"
run: echo "${{ github.event.workflow_run.head_branch }}"

- name: Extract Branch Name
run: echo "${{ github.head_ref }}"
id: extract_branch_name
shell: bash

- name: Example
run: echo "${{ steps.extract_branch_name.outputs }}"

- name: Print SONAR_TOKEN
run: echo "SONAR_TOKEN=${{ secrets.SONAR_TOKEN }}PWR****123-${{ github.event.pull_request.number }}-${{ github.head_ref }}"

- name: Run SonarQube Analysis
env:
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
BRANCH_NAME: "release-8.0.0_capacitor"
BRANCH_NAME: ${{ github.event.workflow_run.head_branch }}
run: |
sonar-scanner \
-Dsonar.login=$SONAR_TOKEN
-Dsonar.pullrequest.key=${{ github.event.pull_request.number }} \
-Dsonar.pullrequest.branch="release-8.0.0_capacitor"
-Dsonar.pullrequest.key=${{ github.event.pull_requests.number }} \
-Dsonar.pullrequest.branch=${{ github.event.workflow_run.head_branch }}

0 comments on commit cdb18c2

Please sign in to comment.