mirror of
https://github.com/KokaKiwi/BarInsta
synced 2024-11-14 02:37:30 +00:00
24 lines
609 B
YAML
24 lines
609 B
YAML
name: Label duplicates
|
|
|
|
on:
|
|
issue_comment:
|
|
types: [created]
|
|
|
|
jobs:
|
|
add-labels:
|
|
runs-on: ubuntu-latest
|
|
if: contains(github.event.comment.body, 'Duplicate of') == true
|
|
steps:
|
|
- name: Add labels
|
|
uses: actions-cool/issues-helper@v2.2.1
|
|
with:
|
|
actions: 'add-labels'
|
|
token: ${{ secrets.GITHUB_TOKEN }}
|
|
issue-number: ${{ github.event.issue.number }}
|
|
labels: 'duplicate'
|
|
- name: Remove runs
|
|
uses: GongT/cancel-previous-workflows@master
|
|
env:
|
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
|
DELETE: true
|