Update .gitea/workflows/qualitytest.yml
This commit is contained in:
@@ -29,7 +29,7 @@ jobs:
|
||||
|
||||
- name: Run SonarQube Scan
|
||||
run: |
|
||||
REPO_NAME=$(echo "${{ inputs.project_key || gitea.repository }}" | tr '/' '_')
|
||||
REPO_NAME=${{ inputs.project_key }}
|
||||
|
||||
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=$(echo "${{ inputs.project_key || gitea.repository }}" | tr '/' '_')
|
||||
REPO_NAME=${{ inputs.project_key }}
|
||||
|
||||
curl -s -u ${{ secrets.SONAR_TOKEN }}: \
|
||||
"${{ secrets.SONAR_HOST_URL }}/api/qualitygates/project_status?projectKey=$REPO_NAME" \
|
||||
|
||||
Reference in New Issue
Block a user