chore: Fix check duplicates
This commit is contained in:
parent
b1b57bd82b
commit
c018fd418c
1 changed files with 3 additions and 3 deletions
6
.github/workflows/check_duplicates.yaml
vendored
6
.github/workflows/check_duplicates.yaml
vendored
|
|
@ -10,14 +10,14 @@ jobs:
|
||||||
env:
|
env:
|
||||||
title: ${{ github.event.issue.title }}
|
title: ${{ github.event.issue.title }}
|
||||||
body: ${{ github.event.issue.title }}
|
body: ${{ github.event.issue.title }}
|
||||||
author: ${{ github.event.issue.author }}
|
author: ${{ github.event.issue.user.login }}
|
||||||
number: ${{ github.event.issue.user.login }}
|
number: ${{ github.event.issue.number }}
|
||||||
GH_TOKEN: ${{ github.token }}
|
GH_TOKEN: ${{ github.token }}
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
- name: Check duplicates
|
- name: Check duplicates
|
||||||
run: |
|
run: |
|
||||||
ISSUES=$(gh issue list --search '${{ env.title }}' | grep -v "${{ env.number }}"")
|
ISSUES=$(gh issue list --search '${{ env.title }}' | grep -v "${{ env.number }}")
|
||||||
echo $ISSUES
|
echo $ISSUES
|
||||||
if [ "$ISSUES" != ""]; then
|
if [ "$ISSUES" != ""]; then
|
||||||
RESPONSE=$(curl "https://generativelanguage.googleapis.com/v1beta/models/gemini-2.0-flash:generateContent?key=${{ secrets.GEMINI_KEY }}" \
|
RESPONSE=$(curl "https://generativelanguage.googleapis.com/v1beta/models/gemini-2.0-flash:generateContent?key=${{ secrets.GEMINI_KEY }}" \
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue