chore: Fix duplicates job
This commit is contained in:
parent
3a0ea19d39
commit
f94d3a96d2
1 changed files with 1 additions and 0 deletions
1
.github/workflows/check_duplicates.yaml
vendored
1
.github/workflows/check_duplicates.yaml
vendored
|
|
@ -19,6 +19,7 @@ jobs:
|
|||
issues=$(gh issue list --search '${{ env.title }}' --json number,title,url)
|
||||
number=${{ env.number }}
|
||||
issues_filtered=$(echo "$issues" | jq --arg num "$number" 'map(select(.number != ($num | tonumber)))')
|
||||
issues_markdown=$(echo "$issues_filtered" | jq -r '.[] | "- [" + .title + "](" + .url + ")"')
|
||||
if [ "$ISSUES" != ""]; then
|
||||
gh issue comment ${{ github.event.issue.number }} --body "@${{ env.author }}\nPossible duplication of:\n$issues_markdown"
|
||||
fi
|
||||
Loading…
Add table
Reference in a new issue