diff --git a/.github/workflows/unlabel.yml b/.github/workflows/unlabel.yml new file mode 100644 index 00000000000..c110dea88ac --- /dev/null +++ b/.github/workflows/unlabel.yml @@ -0,0 +1,12 @@ +name: Remove Label +on: + issue_comment: + types: [created] +jobs: + remove_label: + if: ${{ !contains(fromJSON(vars.MAINTAINERS), github.event.comment.user.login) && contains(github.event.issue.labels.*.name, fromJSON(vars.LABEL_TO_REMOVE)) }} + runs-on: ubuntu-latest + steps: + - uses: actions-ecosystem/action-remove-labels@v1 + with: + labels: ${{ fromJSON(vars.LABEL_TO_REMOVE) }}