chore: Fix check duplicates job
This commit is contained in:
parent
ab0c06ec1f
commit
b1da47561f
1 changed files with 2 additions and 0 deletions
2
.github/workflows/check_duplicates.yaml
vendored
2
.github/workflows/check_duplicates.yaml
vendored
|
|
@ -10,6 +10,7 @@ jobs:
|
|||
env:
|
||||
title: ${{ github.event.issue.title }}
|
||||
body: ${{ github.event.issue.title }}
|
||||
GH_TOKEN: ${{ github.token }}
|
||||
steps:
|
||||
- name: Search for similar issues
|
||||
run: echo "issues=$(gh issue list --search '${{ env.title }}' --json title,body,url)" >> $GITHUB_ENV
|
||||
|
|
@ -25,6 +26,7 @@ jobs:
|
|||
]
|
||||
}]
|
||||
}' | jq -r '.candidates[0].content.parts[0].text')
|
||||
echo $RESPONSE
|
||||
gh issue comment ${{ github.event.issue.number }} --body "$RESPONSE"
|
||||
env:
|
||||
OPENAI_KEY: ${{ secrets.OPENAI_KEY }}
|
||||
Loading…
Add table
Reference in a new issue