From 0d3494b26a8a930fc406ebe3877d37fd24ad6aef Mon Sep 17 00:00:00 2001 From: Konstantin Pavlov <1517853+kpavlov@users.noreply.github.com> Date: Mon, 8 Dec 2025 14:20:35 +0200 Subject: [PATCH] Update GitHub Actions workflow (#452) Update GitHub Actions workflow - Rename `validate-pr` job to `build` - Update `comment` and `updateComment` parameters to be false on forks ## Motivation and Context mikepenz/action-junit-report GH Action can't create/update comments on forks ## How Has This Been Tested? CI ## Breaking Changes No ## Types of changes - [x] Bug fix (non-breaking change which fixes an issue) - [ ] New feature (non-breaking change which adds functionality) - [ ] Breaking change (fix or feature that would cause existing functionality to change) - [ ] Documentation update ## Checklist - [x] I have read the [MCP Documentation](https://modelcontextprotocol.io) - [x] My code follows the repository's style guidelines - [x] New and existing tests pass locally - [ ] I have added appropriate error handling - [ ] I have added or updated documentation as needed ## Additional context --- .github/workflows/build.yml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index e05c06a..b2664ff 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -17,9 +17,9 @@ permissions: pull-requests: write # only required if `comment: true` was enabled jobs: - validate-pr: + build: runs-on: macos-latest-xlarge - name: Validate PR + name: Build timeout-minutes: 20 env: JAVA_OPTS: "-Xmx8g -Dfile.encoding=UTF-8 -Djava.awt.headless=true -Dkotlin.daemon.jvm.options=-Xmx6g" @@ -75,7 +75,7 @@ jobs: if: ${{ !cancelled() }} # always run even if the previous step fails with: annotate_only: true - comment: true + comment: ${{ github.repository == 'modelcontextprotocol/kotlin-sdk' }} detailed_summary: true flaky_summary: true group_suite: true @@ -83,7 +83,7 @@ jobs: include_time_in_summary: true report_paths: '**/test-results/**/TEST-*.xml' truncate_stack_traces: false - updateComment: true + updateComment: ${{ github.repository == 'modelcontextprotocol/kotlin-sdk' }} - name: Disable Auto-Merge on Fail if: failure() && github.event_name == 'pull_request'