diff --git a/.github/workflows/if-nodejs-pr-testing.yml b/.github/workflows/if-nodejs-pr-testing.yml index c8c3bec4d3c..51a60138df6 100644 --- a/.github/workflows/if-nodejs-pr-testing.yml +++ b/.github/workflows/if-nodejs-pr-testing.yml @@ -2,7 +2,7 @@ name: PR testing - if Node project on: - pull_request: + pull_request_target: types: [opened, reopened, synchronize, ready_for_review] push: branches: [master] @@ -76,7 +76,7 @@ jobs: run: npm run generate:assets --if-present # Run the test:md script and capture output - - if: steps.packagejson.outputs.exists == 'true' + - if: ${{ steps.packagejson.outputs.exists == 'true' && matrix.os == 'ubuntu-latest' }} name: Run markdown checks id: markdown_check run: | @@ -87,7 +87,7 @@ jobs: # Post a comment using sticky-pull-request-comment - name: Comment on PR with markdown issues - if: ${{ steps.markdown_check.outputs.markdown_output != '' }} + if: ${{ steps.markdown_check.outputs.markdown_output != '' && matrix.os == 'ubuntu-latest' }} uses: marocchino/sticky-pull-request-comment@3d60a5b2dae89d44e0c6ddc69dd7536aec2071cd with: header: markdown-check-error @@ -102,7 +102,7 @@ jobs: ``` # Delete the comment if there are no issues - - if: ${{ steps.markdown_check.outputs.markdown_output == '' }} + - if: ${{ steps.markdown_check.outputs.markdown_output == '' && matrix.os == 'ubuntu-latest' }} name: Delete markdown check comment uses: marocchino/sticky-pull-request-comment@3d60a5b2dae89d44e0c6ddc69dd7536aec2071cd with: