diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index fa409bfc..d17d47ab 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -10,7 +10,7 @@ on: jobs: build: - if: ${{ github.event.pull_request.merged }} || github.event_name == 'workflow_dispatch' + if: ${{github.ref == 'refs/heads/main' && github.event_name == 'push'}} || github.event_name == 'workflow_dispatch' name: Build ${{ matrix.platform }} ${{ matrix.variant }} runs-on: ubuntu-latest strategy: