diff --git a/.github/workflows/close-featurebranch.yml b/.github/workflows/close-featurebranch.yml index 20bf2af5d3..e805cff0e0 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') || - contains(github.event.changes.labels.removed.*.name, 'feature-branch')) + contains(github.event.pull_request.labels.*.name, 'feature-branch') || + github.event.label.name == 'feature-branch' runs-on: ubuntu-latest steps: - uses: actions/checkout@v3