diff --git a/.github/workflows/release_binaries.yml b/.github/workflows/release_binaries.yml index 55a26a3a..e8bd83f9 100644 --- a/.github/workflows/release_binaries.yml +++ b/.github/workflows/release_binaries.yml @@ -12,7 +12,7 @@ on: jobs: release: - if: github.ref == 'refs/heads/main' # Only run this job on the main branch + if: ${{ github.event.workflow_run.head_branch == 'main' }} # Only run this job on the main branch runs-on: ubuntu-latest steps: - uses: actions/checkout@v4