From 8542b8d87f61fef28172f441360b67887044d5ca Mon Sep 17 00:00:00 2001 From: Adria Navarro Date: Thu, 14 Dec 2023 11:26:28 +0100 Subject: [PATCH] Do check labels --- .github/workflows/close-featurebranch.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/close-featurebranch.yml b/.github/workflows/close-featurebranch.yml index e805cff0e0..5da3eb52cd 100644 --- a/.github/workflows/close-featurebranch.yml +++ b/.github/workflows/close-featurebranch.yml @@ -13,8 +13,8 @@ on: jobs: release: if: | - contains(github.event.pull_request.labels.*.name, 'feature-branch') || - github.event.label.name == 'feature-branch' + (github.event.action == 'closed' && contains(github.event.pull_request.labels.*.name, 'feature-branch')) || + github.event.label.name == 'feature-branch' runs-on: ubuntu-latest steps: - uses: actions/checkout@v3