From 4369c658f6b49573838c46c7ee903ebbeaa56101 Mon Sep 17 00:00:00 2001 From: Igor Bolic Date: Thu, 30 Mar 2023 16:07:02 +0200 Subject: [PATCH] Skip JDK matrix build once the pull request is merged into master --- .github/workflows/build.yml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index b25dece..4c0057b 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -22,7 +22,10 @@ jobs: - java: 17 sonar: false name: Build - if: github.repository == 'sixhours-team/memcached-spring-boot' + # Skip main build (JDK versions build) once the pull request is merged into master. + # Once PR is merged the release-snapshot action should handle the SNAPSHOT + # build and release, and publish the Sonar analysis. + if: github.repository == 'sixhours-team/memcached-spring-boot' && github.event.pull_request.merged == false runs-on: ubuntu-latest steps: - uses: actions/checkout@v3