chore: Fix check duplicates job

This commit is contained in:
Christian Kußowski 2025-05-18 10:16:57 +02:00
parent ab0c06ec1f
commit b1da47561f
No known key found for this signature in database
GPG key ID: E067ECD60F1A0652

View file

@ -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 }}