Barinsta/.github/workflows/label-duplicates.yml

19 lines
444 B
YAML
Raw Normal View History

2021-03-25 19:38:44 +01:00
name: Label duplicates
on:
issue_comment:
types: [created]
jobs:
add-labels:
runs-on: ubuntu-latest
2021-03-25 19:42:21 +01:00
if: contains(github.event.comment.body, 'Duplicate of') == true
2021-03-25 19:38:44 +01:00
steps:
- name: Add labels
uses: actions-cool/issues-helper@v2.2.1
with:
actions: 'add-labels'
token: ${{ secrets.GITHUB_TOKEN }}
2021-03-25 19:42:21 +01:00
issue-number: ${{ github.event.issue.number }}
2021-03-25 19:38:44 +01:00
labels: 'duplicate'