From 1974afb3019e67e9d86f6a95acf7d953a8e31148 Mon Sep 17 00:00:00 2001 From: Richard Bremner Date: Sat, 22 Jun 2024 02:59:40 +1000 Subject: [PATCH] build: Update release_binaries.yml (#180) Update release_binaries.yml --- .github/workflows/release_binaries.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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