chore: Fix check duplicates job

pull/1889/head
Christian Kußowski 5 months ago
parent ab0c06ec1f
commit b1da47561f
No known key found for this signature in database
GPG Key ID: E067ECD60F1A0652

@ -10,6 +10,7 @@ jobs:
env: env:
title: ${{ github.event.issue.title }} title: ${{ github.event.issue.title }}
body: ${{ github.event.issue.title }} body: ${{ github.event.issue.title }}
GH_TOKEN: ${{ github.token }}
steps: steps:
- name: Search for similar issues - name: Search for similar issues
run: echo "issues=$(gh issue list --search '${{ env.title }}' --json title,body,url)" >> $GITHUB_ENV 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') }' | jq -r '.candidates[0].content.parts[0].text')
echo $RESPONSE
gh issue comment ${{ github.event.issue.number }} --body "$RESPONSE" gh issue comment ${{ github.event.issue.number }} --body "$RESPONSE"
env: env:
OPENAI_KEY: ${{ secrets.OPENAI_KEY }} OPENAI_KEY: ${{ secrets.OPENAI_KEY }}
Loading…
Cancel
Save