diff --git a/.github/workflows/gradle.yml b/.github/workflows/gradle.yml index 5b4629a9..0a60c5bb 100644 --- a/.github/workflows/gradle.yml +++ b/.github/workflows/gradle.yml @@ -4,13 +4,15 @@ on: push: branches: [ "develop" ] pull_request: - branches: [ ] + branches: [ "develop" ] + types: [ closed ] permissions: contents: read jobs: build: + if: github.event_name == 'push' || (github.event_name == 'pull_request' && github.event.pull_request.merged == true) runs-on: ubuntu-latest steps: - name: Checkout repository @@ -31,6 +33,7 @@ jobs: AIPROMPT_LULU: ${{ secrets.AIPROMPT_LULU }} docker-build: + if: github.event_name == 'push' || (github.event_name == 'pull_request' && github.event.pull_request.merged == true) runs-on: ubuntu-latest needs: build steps: