FreeTube/.github/workflows/autoLabelDuplicate.yml
efb4f5ff-1298-471a-8973-3d47447115dc c349d63985
Add check to duplicate workflow (#3157)
* Update autoLabelDuplicate.yml

* remove empty lines
2023-02-07 08:58:08 +08:00

17 lines
594 B
YAML

name: "Label Duplicate"
on:
issue_comment:
types: [created]
jobs:
test:
runs-on: ubuntu-latest
steps:
- name: Check Comment Author
if: github.event.comment.author_association == 'MEMBER' || github.event.comment.author_association == 'OWNER'
uses: Amwam/issue-comment-action@v1.3.1
with:
keywords: '["duplicate of #", "duplicate of https://github.com/FreeTubeApp/FreeTube/issues/", "duplicate of https://github.com/FreeTubeApp/FreeTube/pulls/"]'
labels: '["U: duplicate"]'
github-token: "${{ secrets.GITHUB_TOKEN }}"