Skip to content

πŸ“¨ The ultimate agentic social media scheduling tool πŸ€–

Add environment configuration for build job

Enno Gelhaus2580b8ecdc6b
diff --git a/.github/workflows/build-pr.yml b/.github/workflows/build-pr.yml
index 00e26a4e9..e5ca699bb 100644
--- a/.github/workflows/build-pr.yml
+++ b/.github/workflows/build-pr.yml
@@ -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 }}