Refactor build workflow by removing unnecessary steps
Removed the SonarQube analysis step and commit SHA retrieval from the build workflow.
This commit is contained in:
parent
6304354953
commit
f7aa06475c
|
|
@ -50,20 +50,3 @@ jobs:
|
|||
|
||||
- name: Build
|
||||
run: pnpm run build
|
||||
|
||||
- name: Get Commit SHA (short)
|
||||
id: get_version
|
||||
run: |
|
||||
# Get the short 8-character commit SHA
|
||||
VERSION=$(git rev-parse --short=8 HEAD)
|
||||
echo "Commit SHA is $VERSION"
|
||||
echo "tag=$VERSION" >> $GITHUB_OUTPUT
|
||||
|
||||
- name: SonarQube Analysis (Branch)
|
||||
uses: SonarSource/sonarqube-scan-action@v6
|
||||
env:
|
||||
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
|
||||
SONAR_HOST_URL: ${{ secrets.SONAR_HOST_URL }}
|
||||
with:
|
||||
args: >
|
||||
-Dsonar.projectVersion=${{ steps.get_version.outputs.tag }}
|
||||
|
|
|
|||
Loading…
Reference in New Issue