From e9d0b3e98c9d22d8c071c8eca9821929e7bf8e80 Mon Sep 17 00:00:00 2001 From: Subhrodip Mohanta Date: Fri, 5 Mar 2021 23:21:09 +0530 Subject: [PATCH] remove labeling trigger for PR and actions set to master (#1666) --- .github/workflows/maven-ci.yml | 11 ++++------- .github/workflows/maven-pr-builder.yml | 11 ++++------- 2 files changed, 8 insertions(+), 14 deletions(-) diff --git a/.github/workflows/maven-ci.yml b/.github/workflows/maven-ci.yml index c42cd4378..f264831bd 100644 --- a/.github/workflows/maven-ci.yml +++ b/.github/workflows/maven-ci.yml @@ -40,25 +40,25 @@ jobs: steps: - name: Checkout Code - uses: actions/checkout@v2 + uses: actions/checkout@master with: # Disabling shallow clone for improving relevancy of SonarQube reporting fetch-depth: 0 - name: Set up JDK 11 - uses: actions/setup-java@v1 + uses: actions/setup-java@master with: java-version: 11 - name: Cache SonarCloud packages - uses: actions/cache@v2 + uses: actions/cache@master with: path: ~/.sonar/cache key: ${{ runner.os }}-sonar restore-keys: ${{ runner.os }}-sonar - name: Cache Maven dependencies - uses: actions/cache@v2 + uses: actions/cache@master with: path: ~/.m2/repository key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }} @@ -69,9 +69,6 @@ jobs: - name: Install xvfb run: sudo apt-get install -y xvfb - # The SonarQube analysis is only for the master branch of the main repository. - # SonarQube scan does not work for forked repositories try changing it to xvfb-run mvn clean verify - # See https://jira.sonarsource.com/browse/MMF-1371 - name: Build with Maven and run SonarQube analysis run: xvfb-run ./mvnw clean verify org.sonarsource.scanner.maven:sonar-maven-plugin:sonar env: diff --git a/.github/workflows/maven-pr-builder.yml b/.github/workflows/maven-pr-builder.yml index 98bbc79e6..f529920ca 100644 --- a/.github/workflows/maven-pr-builder.yml +++ b/.github/workflows/maven-pr-builder.yml @@ -29,7 +29,7 @@ name: Java PR Builder on: pull_request: branches: [ master ] - types: [ opened, reopened, synchronize, labeled, unlabeled ] + types: [ opened, reopened, synchronize ] jobs: build: @@ -38,15 +38,15 @@ jobs: steps: - name: Checkout Code - uses: actions/checkout@v2 + uses: actions/checkout@master - name: Set up JDK 11 - uses: actions/setup-java@v1 + uses: actions/setup-java@master with: java-version: 11 - name: Cache Maven Dependecies - uses: actions/cache@v2 + uses: actions/cache@master with: path: ~/.m2/repository key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }} @@ -57,8 +57,5 @@ jobs: - name: Install xvfb run: sudo apt-get install -y xvfb - # This worflow is only for building Pull Requests, the master branch runs Sonar analysis on the main repository. - # SonarQube scan does not work for forked repositories. - # See https://jira.sonarsource.com/browse/MMF-1371 - name: Build with Maven run: xvfb-run ./mvnw clean verify