Skip to content

Issue #ED-0000 feat: Added git actions #12

Issue #ED-0000 feat: Added git actions

Issue #ED-0000 feat: Added git actions #12

Workflow file for this run

name: Sonar
on:
workflow_run:
workflows: [android]
types:
- completed
jobs:
SonarScanner:

Check failure on line 10 in .github/workflows/ci-cd.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/ci-cd.yml

Invalid workflow file

You have an error in your yaml syntax on line 10
runs-on: ubuntu-latest
if: github.event.workflow_run.conclusion == 'success'
steps:
- name: Checkout repository
uses: actions/checkout@v3
- name: Install Sonar Scanner
run: sudo npm install -g sonarqube-scanner@3.5.0
- name: Print SONAR_TOKEN
run: echo "SONAR_TOKEN=${{ secrets.SONAR_TOKEN }}PWR****123"
- name: Run SonarQube Analysis
env:
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
run: |
sonar-scanner \
-Dsonar.projectKey=Sunbird-Ed_SunbirdEd-mobile-app \
-Dsonar.organization=sunbird-ed \
-Dsonar.host.url=https://sonarcloud.io \
-Dsonar.login=$SONAR_TOKEN