chore: Fix duplicates job
This commit is contained in:
parent
7a70e0d36d
commit
445c212be9
1 changed files with 5 additions and 5 deletions
10
.github/workflows/check_duplicates.yaml
vendored
10
.github/workflows/check_duplicates.yaml
vendored
|
|
@ -16,9 +16,9 @@ jobs:
|
|||
- uses: actions/checkout@v4
|
||||
- name: Check duplicates
|
||||
run: |
|
||||
issues=$(gh issue list --search '${{ env.title }}' | grep -v "${{ env.number }}")
|
||||
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)))')
|
||||
if [ "$ISSUES" != ""]; then
|
||||
gh issue comment ${{ github.event.issue.number }} --body "@${{ env.author }}\nPossible duplication of:\n$issues"
|
||||
fi
|
||||
env:
|
||||
OPENAI_KEY: ${{ secrets.OPENAI_KEY }}
|
||||
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