Browse Source
Create label-duplicates.yml
renovate/org.robolectric-robolectric-4.x
Austin Huang
4 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
18 additions and
0 deletions
-
.github/workflows/label-duplicates.yml
|
|
@ -0,0 +1,18 @@ |
|
|
|
name: Label duplicates |
|
|
|
|
|
|
|
on: |
|
|
|
issue_comment: |
|
|
|
types: [created] |
|
|
|
|
|
|
|
jobs: |
|
|
|
add-labels: |
|
|
|
runs-on: ubuntu-latest |
|
|
|
if: contains(github.event.issue.body, 'Duplicate of') == true |
|
|
|
steps: |
|
|
|
- name: Add labels |
|
|
|
uses: actions-cool/[email protected] |
|
|
|
with: |
|
|
|
actions: 'add-labels' |
|
|
|
token: ${{ secrets.GITHUB_TOKEN }} |
|
|
|
issue-number: ${{ github.event.issue.number }} |
|
|
|
labels: 'duplicate' |