From 85f5fabad2006857393960689fa3802f75b91751 Mon Sep 17 00:00:00 2001 From: Ansh Goyal Date: Fri, 18 Oct 2024 16:15:18 +0000 Subject: [PATCH] fix comment logic --- .github/workflows/if-nodejs-pr-testing.yml | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/.github/workflows/if-nodejs-pr-testing.yml b/.github/workflows/if-nodejs-pr-testing.yml index 000c5c099f8..8f120d38be9 100644 --- a/.github/workflows/if-nodejs-pr-testing.yml +++ b/.github/workflows/if-nodejs-pr-testing.yml @@ -83,12 +83,10 @@ jobs: OUTPUT=$(npm run test:md || true) echo "$OUTPUT" | tee markdown_output.txt echo "::set-output name=markdown_output::$OUTPUT" - shell: bash - # Post a comment using sticky-pull-request-comment - name: Comment on PR with markdown issues - if: ${{ always() && steps.markdown_check.outputs.markdown_output != '' }} + if: ${{ steps.markdown_check.outputs.markdown_output != '' }} uses: marocchino/sticky-pull-request-comment@3d60a5b2dae89d44e0c6ddc69dd7536aec2071cd with: header: markdown-check-error