File tree 2 files changed +4
-6
lines changed
2 files changed +4
-6
lines changed Original file line number Diff line number Diff line change @@ -35512,7 +35512,7 @@ async function run() {
35512
35512
const inspectFlags = core.getInput('inspect-flags');
35513
35513
const cloudRunLocally = core.getBooleanInput('cloud-run-locally');
35514
35514
const onlyVerifyScripts = core.getBooleanInput('only-verify-scripts');
35515
- const shouldCommentCloudTestRunUrlOnPR = core.getBooleanInput('cloud-comment-on-pr');
35515
+ const shouldCommentOnPR = core.getBooleanInput('cloud-comment-on-pr');
35516
35516
const debug = core.getBooleanInput('debug');
35517
35517
const allPromises = [];
35518
35518
core.debug(`Flag to show k6 progress output set to: ${debug}`);
@@ -35625,7 +35625,7 @@ async function run() {
35625
35625
}
35626
35626
}
35627
35627
await Promise.all(allPromises);
35628
- if (shouldCommentCloudTestRunUrlOnPR ) {
35628
+ if (isCloud && shouldCommentOnPR ) {
35629
35629
// Generate PR comment with test run URLs
35630
35630
await (0, githubHelper_1.generatePRComment)(TEST_RESULT_URLS_MAP);
35631
35631
}
Original file line number Diff line number Diff line change @@ -31,9 +31,7 @@ export async function run(): Promise<void> {
31
31
const inspectFlags = core . getInput ( 'inspect-flags' )
32
32
const cloudRunLocally = core . getBooleanInput ( 'cloud-run-locally' )
33
33
const onlyVerifyScripts = core . getBooleanInput ( 'only-verify-scripts' )
34
- const shouldCommentCloudTestRunUrlOnPR = core . getBooleanInput (
35
- 'cloud-comment-on-pr'
36
- )
34
+ const shouldCommentOnPR = core . getBooleanInput ( 'cloud-comment-on-pr' )
37
35
const debug = core . getBooleanInput ( 'debug' )
38
36
39
37
const allPromises : Promise < void > [ ] = [ ]
@@ -183,7 +181,7 @@ export async function run(): Promise<void> {
183
181
}
184
182
await Promise . all ( allPromises )
185
183
186
- if ( shouldCommentCloudTestRunUrlOnPR ) {
184
+ if ( isCloud && shouldCommentOnPR ) {
187
185
// Generate PR comment with test run URLs
188
186
await generatePRComment ( TEST_RESULT_URLS_MAP )
189
187
}
You can’t perform that action at this time.
0 commit comments