From 75047508be117964c9abe9cde1be3a15880114a2 Mon Sep 17 00:00:00 2001 From: lburgazzoli Date: Tue, 18 Aug 2020 17:17:55 +0200 Subject: [PATCH] build(ci): build on push and skip build for some paths --- .../workflows/{pr-build.yml => ci-build.yml} | 21 ++++++++++++++++--- 1 file changed, 18 insertions(+), 3 deletions(-) rename .github/workflows/{pr-build.yml => ci-build.yml} (90%) diff --git a/.github/workflows/pr-build.yml b/.github/workflows/ci-build.yml similarity index 90% rename from .github/workflows/pr-build.yml rename to .github/workflows/ci-build.yml index ac17e2c8b..44d4c56d9 100644 --- a/.github/workflows/pr-build.yml +++ b/.github/workflows/ci-build.yml @@ -14,18 +14,33 @@ # See the License for the specific language governing permissions and # limitations under the License. # -name: Build PR +name: Build on: + push: + branches: + - master + paths-ignore: + - '**.adoc' + - 'KEYS' + - 'LICENSE' + - 'NOTICE' + - 'Jenkinsfile' pull_request: branches: - master + paths-ignore: + - '**.adoc' + - 'KEYS' + - 'LICENSE' + - 'NOTICE' + - 'Jenkinsfile' jobs: build: runs-on: ubuntu-latest steps: - uses: actions/checkout@v2 - - name: Set up JDK 11 + - name: Set up JDK 11 uses: AdoptOpenJDK/install-jdk@v1 with: version: '11' @@ -47,7 +62,7 @@ jobs: - '14' steps: - uses: actions/checkout@v2 - - name: Set up JDK - ${{ matrix.java }} + - name: Set up JDK - ${{ matrix.java }} uses: AdoptOpenJDK/install-jdk@v1 with: version: ${{ matrix.java }}