From e5ea022b44a974653174daacf9cedc805d7da4c3 Mon Sep 17 00:00:00 2001 From: Andrew Chou Date: Thu, 19 Sep 2024 15:27:54 -0400 Subject: [PATCH] chore: only attempt to run release workflow when merging PR --- .github/workflows/release.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index a1f71a88d..45bfc026d 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -19,9 +19,11 @@ on: # - premajor pull_request: types: [closed] + branches: [main] jobs: release: + if: github.event.pull_request.merged == true runs-on: ubuntu-latest permissions: contents: write