From 5603b173a51f9fd9e682337d22d0c1a440414a2d Mon Sep 17 00:00:00 2001 From: NishantRajputRN Date: Tue, 12 May 2026 16:34:03 +0530 Subject: [PATCH] sfs --- .gitea/workflows/azure-pipelines.yml | 14 ++++++++++---- App.js | 3 ++- 2 files changed, 12 insertions(+), 5 deletions(-) diff --git a/.gitea/workflows/azure-pipelines.yml b/.gitea/workflows/azure-pipelines.yml index 10c3652..5af894c 100644 --- a/.gitea/workflows/azure-pipelines.yml +++ b/.gitea/workflows/azure-pipelines.yml @@ -34,13 +34,19 @@ jobs: run: npm ci # ---------------- SONARQUBE ---------------- - # In Gitea: Repository → Settings → Secrets and variables → add secret SONAR_TOKEN - # (SonarQube user token). Name must be exactly SONAR_TOKEN — not the token value as the name. + # Gitea does not support actions with runs.using: node24 (e.g. sonarqube-scan-action master). + # Use the CLI via npx (same as npm run sonar); optional SONAR_URL overrides sonar-project.properties. + # In Gitea: Settings → Secrets → SONAR_TOKEN (and optionally SONAR_URL). - name: SonarQube Scan - uses: SonarSource/sonarqube-scan-action@v6 env: SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }} - SONAR_HOST_URL: ${{ secrets.SONAR_URL }} + SONAR_HOST_URL: ${{ secrets.SONAR_URL }} + run: | + if [ -n "${SONAR_HOST_URL}" ]; then + npx --yes sonarqube-scanner -Dsonar.host.url="${SONAR_HOST_URL}" + else + npx --yes sonarqube-scanner + fi # ---------------- ANDROID SDK (required on Ubuntu: ANDROID_HOME / sdk.dir) ---------------- - name: Setup Android SDK diff --git a/App.js b/App.js index e9c8229..3a427bc 100644 --- a/App.js +++ b/App.js @@ -4,4 +4,5 @@ console.log("test2") console.log("test3") console.log("test4") console.log("test5") -console.log("test6") \ No newline at end of file +console.log("test6") +console.log("test7") \ No newline at end of file