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'
|
2021-07-06 16:16:13 +02:00
|
|
|
- name: Remove runs
|
|
|
|
uses: GongT/cancel-previous-workflows@master
|
|
|
|
env:
|
|
|
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
2021-07-06 16:19:59 +02:00
|
|
|
DELETE: true
|