this repo has no description

[github action] Only run the action if the comment comes from a non-maintainer and the issue has the appropriate label

Kate 98ce196d 1829f2d2

Changed files
+2 -1
.github
workflows
+2 -1
.github/workflows/unlabel.yml
···
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: "needs reporter action"
+
labels: ${{ fromJSON(vars.LABEL_TO_REMOVE) }}