mirror of
https://github.com/gradle/gradle-build-action.git
synced 2024-11-26 10:11:03 -05:00
Build outputs
This commit is contained in:
parent
3f2d9cde44
commit
b400dc555d
4 changed files with 18 additions and 20 deletions
17
dist/main/index.js
vendored
17
dist/main/index.js
vendored
|
@ -64967,6 +64967,7 @@ class GradleStateCache {
|
||||||
fs_1.default.appendFileSync(propertiesFile, 'org.gradle.daemon=false');
|
fs_1.default.appendFileSync(propertiesFile, 'org.gradle.daemon=false');
|
||||||
const initScriptFilenames = [
|
const initScriptFilenames = [
|
||||||
'build-result-capture.init.gradle',
|
'build-result-capture.init.gradle',
|
||||||
|
'build-result-capture-service.plugin.groovy',
|
||||||
'project-root-capture.init.gradle',
|
'project-root-capture.init.gradle',
|
||||||
'project-root-capture.plugin.groovy'
|
'project-root-capture.plugin.groovy'
|
||||||
];
|
];
|
||||||
|
@ -65291,7 +65292,7 @@ class ConfigurationCacheEntryExtractor extends AbstractEntryExtractor {
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
getProjectRoots() {
|
getProjectRoots() {
|
||||||
const projectList = path_1.default.resolve(this.gradleUserHome, cache_base_1.PROJECT_ROOTS_FILE);
|
const projectList = path_1.default.resolve(process.env['RUNNER_TEMP'], cache_base_1.PROJECT_ROOTS_FILE);
|
||||||
if (!fs_1.default.existsSync(projectList)) {
|
if (!fs_1.default.existsSync(projectList)) {
|
||||||
core.info(`Missing project list file ${projectList}`);
|
core.info(`Missing project list file ${projectList}`);
|
||||||
return [];
|
return [];
|
||||||
|
@ -65559,7 +65560,7 @@ function isCacheDisabled() {
|
||||||
}
|
}
|
||||||
exports.isCacheDisabled = isCacheDisabled;
|
exports.isCacheDisabled = isCacheDisabled;
|
||||||
function isCacheReadOnly() {
|
function isCacheReadOnly() {
|
||||||
return core.getBooleanInput(CACHE_READONLY_PARAMETER);
|
return !isCacheWriteOnly() && core.getBooleanInput(CACHE_READONLY_PARAMETER);
|
||||||
}
|
}
|
||||||
exports.isCacheReadOnly = isCacheReadOnly;
|
exports.isCacheReadOnly = isCacheReadOnly;
|
||||||
function isCacheWriteOnly() {
|
function isCacheWriteOnly() {
|
||||||
|
@ -66031,14 +66032,12 @@ function writeSummaryTable(results) {
|
||||||
core.summary.addRaw('\n');
|
core.summary.addRaw('\n');
|
||||||
}
|
}
|
||||||
function renderOutcome(result) {
|
function renderOutcome(result) {
|
||||||
const badgeUrl = result.buildFailed
|
const labelPart = result.buildScanUri ? 'Build%20Scan%E2%84%A2' : 'Build';
|
||||||
? 'https://img.shields.io/badge/Build%20Scan%E2%84%A2-FAILED-red?logo=Gradle'
|
const outcomePart = result.buildFailed ? 'FAILED-red' : 'SUCCESS-brightgreen';
|
||||||
: 'https://img.shields.io/badge/Build%20Scan%E2%84%A2-SUCCESS-brightgreen?logo=Gradle';
|
const badgeUrl = `https://img.shields.io/badge/${labelPart}-${outcomePart}?logo=Gradle`;
|
||||||
const badgeHtml = `<img src="${badgeUrl}" alt="Gradle Build">`;
|
const badgeHtml = `<img src="${badgeUrl}" alt="Gradle Build">`;
|
||||||
if (result.buildScanUri) {
|
const targetUrl = result.buildScanUri ? result.buildScanUri : '#';
|
||||||
return `<a href="${result.buildScanUri}" rel="nofollow">${badgeHtml}</a>`;
|
return `<a href="${targetUrl}" rel="nofollow">${badgeHtml}</a>`;
|
||||||
}
|
|
||||||
return badgeHtml;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
2
dist/main/index.js.map
vendored
2
dist/main/index.js.map
vendored
File diff suppressed because one or more lines are too long
17
dist/post/index.js
vendored
17
dist/post/index.js
vendored
|
@ -64018,6 +64018,7 @@ class GradleStateCache {
|
||||||
fs_1.default.appendFileSync(propertiesFile, 'org.gradle.daemon=false');
|
fs_1.default.appendFileSync(propertiesFile, 'org.gradle.daemon=false');
|
||||||
const initScriptFilenames = [
|
const initScriptFilenames = [
|
||||||
'build-result-capture.init.gradle',
|
'build-result-capture.init.gradle',
|
||||||
|
'build-result-capture-service.plugin.groovy',
|
||||||
'project-root-capture.init.gradle',
|
'project-root-capture.init.gradle',
|
||||||
'project-root-capture.plugin.groovy'
|
'project-root-capture.plugin.groovy'
|
||||||
];
|
];
|
||||||
|
@ -64342,7 +64343,7 @@ class ConfigurationCacheEntryExtractor extends AbstractEntryExtractor {
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
getProjectRoots() {
|
getProjectRoots() {
|
||||||
const projectList = path_1.default.resolve(this.gradleUserHome, cache_base_1.PROJECT_ROOTS_FILE);
|
const projectList = path_1.default.resolve(process.env['RUNNER_TEMP'], cache_base_1.PROJECT_ROOTS_FILE);
|
||||||
if (!fs_1.default.existsSync(projectList)) {
|
if (!fs_1.default.existsSync(projectList)) {
|
||||||
core.info(`Missing project list file ${projectList}`);
|
core.info(`Missing project list file ${projectList}`);
|
||||||
return [];
|
return [];
|
||||||
|
@ -64610,7 +64611,7 @@ function isCacheDisabled() {
|
||||||
}
|
}
|
||||||
exports.isCacheDisabled = isCacheDisabled;
|
exports.isCacheDisabled = isCacheDisabled;
|
||||||
function isCacheReadOnly() {
|
function isCacheReadOnly() {
|
||||||
return core.getBooleanInput(CACHE_READONLY_PARAMETER);
|
return !isCacheWriteOnly() && core.getBooleanInput(CACHE_READONLY_PARAMETER);
|
||||||
}
|
}
|
||||||
exports.isCacheReadOnly = isCacheReadOnly;
|
exports.isCacheReadOnly = isCacheReadOnly;
|
||||||
function isCacheWriteOnly() {
|
function isCacheWriteOnly() {
|
||||||
|
@ -64951,14 +64952,12 @@ function writeSummaryTable(results) {
|
||||||
core.summary.addRaw('\n');
|
core.summary.addRaw('\n');
|
||||||
}
|
}
|
||||||
function renderOutcome(result) {
|
function renderOutcome(result) {
|
||||||
const badgeUrl = result.buildFailed
|
const labelPart = result.buildScanUri ? 'Build%20Scan%E2%84%A2' : 'Build';
|
||||||
? 'https://img.shields.io/badge/Build%20Scan%E2%84%A2-FAILED-red?logo=Gradle'
|
const outcomePart = result.buildFailed ? 'FAILED-red' : 'SUCCESS-brightgreen';
|
||||||
: 'https://img.shields.io/badge/Build%20Scan%E2%84%A2-SUCCESS-brightgreen?logo=Gradle';
|
const badgeUrl = `https://img.shields.io/badge/${labelPart}-${outcomePart}?logo=Gradle`;
|
||||||
const badgeHtml = `<img src="${badgeUrl}" alt="Gradle Build">`;
|
const badgeHtml = `<img src="${badgeUrl}" alt="Gradle Build">`;
|
||||||
if (result.buildScanUri) {
|
const targetUrl = result.buildScanUri ? result.buildScanUri : '#';
|
||||||
return `<a href="${result.buildScanUri}" rel="nofollow">${badgeHtml}</a>`;
|
return `<a href="${targetUrl}" rel="nofollow">${badgeHtml}</a>`;
|
||||||
}
|
|
||||||
return badgeHtml;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
2
dist/post/index.js.map
vendored
2
dist/post/index.js.map
vendored
File diff suppressed because one or more lines are too long
Loading…
Reference in a new issue