Skip to content

Commit 13f97c8

Browse files
committed
Merge branch 'aeisenberg/permissions' into add-ref-input
2 parents 72f9a88 + 36419a7 commit 13f97c8

6 files changed

Lines changed: 16 additions & 2 deletions

File tree

lib/actions-util.js

Lines changed: 6 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

lib/actions-util.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

lib/upload-lib.js

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

lib/upload-lib.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/actions-util.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -618,6 +618,12 @@ export async function sendStatusReport<S extends StatusReportBase>(
618618
): Promise<boolean> {
619619
const statusReportJSON = JSON.stringify(statusReport);
620620
core.debug(`Sending status report: ${statusReportJSON}`);
621+
// If in test mode we don't want to upload the results
622+
const testMode = process.env["TEST_MODE"] === "true" || false;
623+
if (testMode) {
624+
core.debug("In test mode. Status reports are not uploaded.");
625+
return true;
626+
}
621627

622628
const nwo = getRequiredEnvParam("GITHUB_REPOSITORY");
623629
const [owner, repo] = nwo.split("/");

src/upload-lib.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -100,6 +100,7 @@ async function uploadPayload(
100100
// If in test mode we don't want to upload the results
101101
const testMode = process.env["TEST_MODE"] === "true" || false;
102102
if (testMode) {
103+
logger.debug("In test mode. Results are not uploaded.");
103104
return;
104105
}
105106

0 commit comments

Comments
 (0)