Add environment configuration for build job

This commit is contained in:
Enno Gelhaus 2025-10-01 14:04:36 +02:00 committed by GitHub
parent 12da5b2f4f
commit 2580b8ecdc
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 6 additions and 5 deletions

View File

@ -7,7 +7,9 @@ on:
jobs:
build:
runs-on: ubuntu-latest
environment:
name: build-pr
strategy:
matrix:
@ -66,10 +68,9 @@ jobs:
env:
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
SONAR_HOST_URL: ${{ secrets.SONAR_HOST_URL }}
SONAR_PULL_REQUEST_KEY: ${{ github.event.pull_request.number }}
SONAR_PULL_REQUEST_BRANCH: ${{ github.head_ref }}
SONAR_PULL_REQUEST_BASE: ${{ github.base_ref }}
with:
args: >
-Dsonar.projectVersion=${{ steps.get_version.outputs.tag }}
-Dsonar.pullrequest.key=${{ github.event.pull_request.number }}
-Dsonar.pullrequest.branch=${{ github.event.pull_request.head.ref }}
-Dsonar.pullrequest.base=${{ github.event.pull_request.base.ref }}