diff --git a/.github/workflows/_template.yml b/.github/workflows/_template.yml index f33956a0..0c9ba855 100644 --- a/.github/workflows/_template.yml +++ b/.github/workflows/_template.yml @@ -96,7 +96,7 @@ jobs: - name: Build and push Docker image id: build-and-push uses: docker/build-push-action@v5 - if: github.event_name != 'pull_request' # TODO + if: ${{github.ref == 'refs/heads/maven-4' || github.event_name != 'pull_request'}} # TODO with: context: ${{ inputs.directory }} push: ${{ github.event_name != 'pull_request' && (github.ref == 'refs/heads/main' || github.ref == 'refs/heads/maven-4') }}