Skip to content

Commit

Permalink
edit
Browse files Browse the repository at this point in the history
  • Loading branch information
usfalami committed Jan 8, 2025
1 parent a502ac7 commit ba3f5b0
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 6 deletions.
4 changes: 1 addition & 3 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,11 +17,9 @@ jobs:
with:
java-version: '21'
distribution: 'temurin' #Eclipse Temurin
- name: Build and scan source code
- uses: oneteme/common-action/mvn-sonar-action.yml@main
env:
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
PROJECT_KEY: "${{ github.repository_owner }}_${{ github.event.repository.name }}"
run: mvn --batch-mode --no-transfer-progress verify org.sonarsource.scanner.maven:sonar-maven-plugin:4.0.0.4121:sonar -Dsonar.projectKey=$PROJECT_KEY
- name: Extract project version
id: mvnVer
run: echo "version=$(mvn help:evaluate -DforceStdout -Dexpression=project.version -q)" >>$GITHUB_OUTPUT
Expand Down
4 changes: 1 addition & 3 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,9 @@ jobs:
with:
java-version: '21'
distribution: 'temurin' #Eclipse Temurin
- name: Build and scan source code
- uses: oneteme/common-action/mvn-sonar-action.yml@main
env:
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
PROJECT_KEY: "${{ github.repository_owner }}_${{ github.event.repository.name }}"
run: mvn --batch-mode --no-transfer-progress verify org.sonarsource.scanner.maven:sonar-maven-plugin:4.0.0.4121:sonar -Dsonar.projectKey=$PROJECT_KEY
deploy:
needs: build
runs-on: ubuntu-latest
Expand Down

0 comments on commit ba3f5b0

Please sign in to comment.