Skip to content

Commit

Permalink
check if empty
Browse files Browse the repository at this point in the history
  • Loading branch information
dimkouv committed Oct 3, 2024
1 parent f09d70c commit a6b5d30
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions .github/workflows/ccip-find-flaky-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,10 +41,8 @@ jobs:
# Search for issues with the same title
EXISTING_ISSUES=$(curl -s -H "Authorization: token ${{ secrets.GITHUB_TOKEN }}" "https://api.github.com/search/issues?q=is:issue+repo:${{ github.repository }}+in:title+${ISSUE_TITLE}" | jq '.total_count')
echo "Existing issues: $EXISTING_ISSUES"
# Save whether an issue with this title exists
if [ "$EXISTING_ISSUES" -eq "0" ]; then
if [ -z "$EXISTING_ISSUES" ] || [ "$EXISTING_ISSUES" -eq "0" ]; then
curl -X POST \
-H "Authorization: token ${{ secrets.GITHUB_TOKEN }}" \
-H "Accept: application/vnd.github.v3+json" \
Expand Down

0 comments on commit a6b5d30

Please sign in to comment.