File tree 2 files changed +6
-1
lines changed
2 files changed +6
-1
lines changed Original file line number Diff line number Diff line change @@ -25,6 +25,10 @@ inputs:
25
25
cloud-run-locally :
26
26
description : ' If true, run tests locally instead and upload results to Grafana Cloud k6'
27
27
required : false
28
+ comment-cloud-test-run-url-on-pr :
29
+ description : ' If true, comment the cloud test run URL on the PR'
30
+ default : " true"
31
+ required : false
28
32
29
33
runs :
30
34
using : node20
Original file line number Diff line number Diff line change @@ -21,6 +21,7 @@ export async function run(): Promise<void> {
21
21
const failFast = core . getInput ( 'fail-fast' , { required : false } ) === 'true'
22
22
const flags = core . getInput ( 'flags' , { required : false } )
23
23
const cloudRunLocally = core . getInput ( 'cloud-run-locally' , { required : false } ) === 'true'
24
+ const shouldCommentCloudTestRunUrlOnPR = core . getInput ( 'comment-cloud-test-run-url-on-pr' , { required : false } ) === 'true'
24
25
25
26
const isCloud = await isCloudIntegrationEnabled ( )
26
27
@@ -30,7 +31,7 @@ export async function run(): Promise<void> {
30
31
set : ( target : TestRunUrlsMap , key : string , value : string ) => {
31
32
target [ key ] = value ;
32
33
if ( Object . keys ( target ) . length === TOTAL_TEST_RUNS ) {
33
- if ( isCloud ) {
34
+ if ( isCloud && shouldCommentCloudTestRunUrlOnPR ) {
34
35
// Generate PR comment with test run URLs
35
36
generatePRComment ( target ) ;
36
37
}
You can’t perform that action at this time.
0 commit comments