Skip to content

Commit

Permalink
Fix build workflow. (#603)
Browse files Browse the repository at this point in the history
  • Loading branch information
mshima authored Jan 5, 2022
1 parent 65b22c3 commit 89fbee4
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ on:
pull_request:
types: [opened, synchronize, reopened]
branches:
- '*'
- main

jobs:
build-and-analyse:
Expand All @@ -43,12 +43,12 @@ jobs:
- name: Test with Maven
run: mvn test --batch-mode
- name: Run Sonar analysis
if: github.repository == 'jhipster/jhipster-bom' && github.event == 'push'
if: github.repository == 'jhipster/jhipster-bom' && github.event_name == 'push'
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: mvn -ntp --batch-mode initialize org.jacoco:jacoco-maven-plugin:prepare-agent sonar:sonar -Dsonar.host.url=https://sonarcloud.io -Dsonar.projectKey=jhipster-framework -Dsonar.organization=jhipster -Dsonar.login=${{ secrets.SONAR_TOKEN }}
- name: Deploy to github packages
if: github.repository == 'jhipster/jhipster-bom' && github.event == 'push'
if: github.repository == 'jhipster/jhipster-bom' && github.event_name == 'push'
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: mvn deploy -Dgpg.skip -Dgithub

0 comments on commit 89fbee4

Please sign in to comment.