1
mirror of https://github.com/StarWishsama/Slimefun4.git synced 2024-09-19 19:25:48 +00:00
Slimefun4/.github/workflows/duplicates.yml
TheBusyBiscuit f0730237e2 [CI skip] Configured remaining workflow permissions
Hopefully I did this right? 👀
2022-07-12 15:05:15 +02:00

26 lines
531 B
YAML

name: Mark Issue as duplicate
on:
issue_comment:
types: [created]
permissions:
contents: read
issues: write
jobs:
comment:
name: Mark Issue as duplicate
runs-on: ubuntu-latest
if: contains(github.event.comment.body, 'Duplicate of ')
steps:
- name: Add label to the Issue
uses: maxkomarychev/octions/octions/issues/add-labels@master
with:
token: ${{ secrets.ACCESS_TOKEN }}
issue_number: ${{ github.event.issue.number }}
labels: '🚩 Duplicate'