From 2d51a8c3f5154dfea57e78b3df248dc29f14f3b1 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 | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index a1f71a88d..5ecbbe686 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -19,9 +19,12 @@ on: # - premajor pull_request: types: [closed] + branches: + - main jobs: release: + if: github.event.pull_request.merged == true runs-on: ubuntu-latest permissions: contents: write