Remove PRs from build

Will be a separate workflow.
This commit is contained in:
Enno Gelhaus 2025-10-01 10:54:35 +02:00 committed by GitHub
parent 520133342e
commit 8cf266640d
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 0 additions and 23 deletions

View File

@ -3,7 +3,6 @@ name: Build
on:
push:
pull_request_target:
jobs:
build:
@ -19,13 +18,6 @@ jobs:
- uses: actions/checkout@v4
with:
fetch-depth: 0
ref: ${{ github.event.pull_request.head.sha }}
if: always() && github.event_name == 'pull_request'
- uses: actions/checkout@v4
with:
fetch-depth: 0
if: always() && github.event_name != 'pull_request'
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v4
@ -67,24 +59,9 @@ jobs:
VERSION=$(git describe --tags --always)
echo "Project version is $VERSION"
echo "tag=$VERSION" >> $GITHUB_OUTPUT
- name: SonarQube Analysis (Pull Request)
uses: SonarSource/sonarqube-scan-action@v6
if: always() && github.event_name == 'pull_request'
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 }}
- name: SonarQube Analysis (Branch)
uses: SonarSource/sonarqube-scan-action@v6
if: always() && github.event_name != 'pull_request'
env:
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
SONAR_HOST_URL: ${{ secrets.SONAR_HOST_URL }}