Update .gitea/workflows/qualitytest.yml

This commit is contained in:
2026-04-06 03:10:40 +00:00
parent 49443e6ddc
commit 3e8831bc0e

View File

@@ -29,7 +29,7 @@ jobs:
- name: Run SonarQube Scan
run: |
REPO_NAME=${{ inputs.project_key || gitea.repository }}
REPO_NAME=${{ inputs.project_key || gitea.event.repository.name }}
sonar-scanner \
-Dsonar.projectKey=$REPO_NAME \
@@ -48,7 +48,7 @@ jobs:
- name: Get Quality Gate Result
if: gitea.event.pull_request != null
run: |
REPO_NAME=${{ inputs.project_key || gitea.repository }}
REPO_NAME=${{ inputs.project_key || gitea.event.repository.name }}
curl -s -u ${{ secrets.SONAR_TOKEN }}: \
"${{ secrets.SONAR_HOST_URL }}/api/qualitygates/project_status?projectKey=$REPO_NAME" \