From 96a7f678c38becd62e150199ecd1e9080f2622cc Mon Sep 17 00:00:00 2001 From: Craig Loewen Date: Mon, 8 Jan 2024 14:45:58 -0500 Subject: [PATCH] Update similarIssues.yml to not show 'fail' when no similar issues found (#4042) ## Summary of the Pull Request Added an if statement to similarIssues.yml so that the logic can be updated to not show as 'failure' when no similar issue is found. ## References and Relevant Issues None ## Detailed Description of the Pull Request / Additional comments Small change only ## Validation Steps Performed ## PR Checklist - [x] Closes https://github.com/craigloewen-msft/GitGudSimilarIssues/issues/33 ###### Microsoft Reviewers: [Open in CodeFlow](https://microsoft.github.io/open-pr/?codeflow=https://github.com/microsoft/winget-cli/pull/4042) --- .github/workflows/similarissues.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/similarissues.yml b/.github/workflows/similarissues.yml index 115ef40494..722249ebee 100644 --- a/.github/workflows/similarissues.yml +++ b/.github/workflows/similarissues.yml @@ -21,6 +21,7 @@ jobs: runs-on: ubuntu-latest permissions: issues: write + if: needs.getSimilarIssues.outputs.message != '' steps: - name: Add comment run: gh issue comment "$NUMBER" --repo "$REPO" --body "$BODY"