1
0
mirror of https://github.com/KokaKiwi/BarInsta synced 2024-11-15 03:07:29 +00:00
BarInsta/.github/workflows/label-duplicates.yml

24 lines
612 B
YAML
Raw Normal View History

2021-03-25 18:38:44 +00:00
name: Label duplicates
on:
issue_comment:
types: [created]
jobs:
add-labels:
runs-on: ubuntu-latest
2021-03-25 18:42:21 +00:00
if: contains(github.event.comment.body, 'Duplicate of') == true
2021-03-25 18:38:44 +00:00
steps:
- name: Add labels
uses: actions-cool/issues-helper@v2.2.1
with:
actions: 'add-labels'
token: ${{ secrets.GITHUB_TOKEN }}
2021-03-25 18:42:21 +00:00
issue-number: ${{ github.event.issue.number }}
2021-03-25 18:38:44 +00:00
labels: 'duplicate'
2021-07-06 14:16:13 +00:00
- name: Remove runs
uses: GongT/cancel-previous-workflows@master
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
2021-07-06 18:34:20 +00:00
DELETE: 'yes'