Skip to content

Commit ed60cf2

Browse files
committed
Update GitHub Actions workflow
- Rename `validate-pr` job to `build` - Update `comment` and `updateComment` parameters to be false on forks
1 parent 64f2d18 commit ed60cf2

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

.github/workflows/build.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,9 @@ permissions:
1717
pull-requests: write # only required if `comment: true` was enabled
1818

1919
jobs:
20-
validate-pr:
20+
build:
2121
runs-on: macos-latest-xlarge
22-
name: Validate PR
22+
name: Build
2323
timeout-minutes: 20
2424
env:
2525
JAVA_OPTS: "-Xmx8g -Dfile.encoding=UTF-8 -Djava.awt.headless=true -Dkotlin.daemon.jvm.options=-Xmx6g"
@@ -75,15 +75,15 @@ jobs:
7575
if: ${{ !cancelled() }} # always run even if the previous step fails
7676
with:
7777
annotate_only: true
78-
comment: true
78+
comment: ${{ github.repository == 'modelcontextprotocol/kotlin-sdk' }}
7979
detailed_summary: true
8080
flaky_summary: true
8181
group_suite: true
8282
include_empty_in_summary: false
8383
include_time_in_summary: true
8484
report_paths: '**/test-results/**/TEST-*.xml'
8585
truncate_stack_traces: false
86-
updateComment: true
86+
updateComment: ${{ github.repository == 'modelcontextprotocol/kotlin-sdk' }}
8787

8888
- name: Disable Auto-Merge on Fail
8989
if: failure() && github.event_name == 'pull_request'

0 commit comments

Comments
 (0)