Delete fb on label removed

This commit is contained in:
Adria Navarro 2023-12-14 11:14:05 +01:00
parent ad7be462fa
commit 4e934a56b7
1 changed files with 4 additions and 3 deletions

View File

@ -2,9 +2,7 @@ name: close-featurebranch
on: on:
pull_request: pull_request:
types: [closed] types: [closed, unlabeled]
branches:
- master
workflow_dispatch: workflow_dispatch:
inputs: inputs:
BRANCH: BRANCH:
@ -14,6 +12,9 @@ on:
jobs: jobs:
release: release:
if: |
(contains(github.event.pull_request.labels.*.name, 'feature-branch') ||
contains(github.event.changes.labels.removed.*.name, 'feature-branch'))
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- uses: actions/checkout@v3 - uses: actions/checkout@v3