From c3070bf681afef6c4e1d338b22d18b2e0d9a194d Mon Sep 17 00:00:00 2001 From: Marcelo Shima Date: Wed, 5 Jan 2022 15:33:22 -0300 Subject: [PATCH] Fix build workflow. --- .github/workflows/build.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 21f27824e..13b8041cf 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -27,7 +27,7 @@ on: pull_request: types: [opened, synchronize, reopened] branches: - - '*' + - main jobs: build-and-analyse: @@ -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