mirror of
https://github.com/gradle/actions.git
synced 2025-11-26 17:09:10 +08:00
[bot] Update dist directory
This commit is contained in:
committed by
github-actions[bot]
parent
723ca4de01
commit
b7e399239c
247
dist/dependency-submission/post/index.js
vendored
247
dist/dependency-submission/post/index.js
vendored
@@ -93720,7 +93720,7 @@ function wrappy (fn, cb) {
|
||||
|
||||
NodeType = __nccwpck_require__(9267);
|
||||
|
||||
XMLStringifier = __nccwpck_require__(6086);
|
||||
XMLStringifier = __nccwpck_require__(8594);
|
||||
|
||||
XMLStringWriter = __nccwpck_require__(5913);
|
||||
|
||||
@@ -93990,7 +93990,7 @@ function wrappy (fn, cb) {
|
||||
|
||||
XMLAttribute = __nccwpck_require__(8376);
|
||||
|
||||
XMLStringifier = __nccwpck_require__(6086);
|
||||
XMLStringifier = __nccwpck_require__(8594);
|
||||
|
||||
XMLStringWriter = __nccwpck_require__(5913);
|
||||
|
||||
@@ -96043,7 +96043,7 @@ function wrappy (fn, cb) {
|
||||
|
||||
/***/ }),
|
||||
|
||||
/***/ 6086:
|
||||
/***/ 8594:
|
||||
/***/ (function(module) {
|
||||
|
||||
// Generated by CoffeeScript 1.12.7
|
||||
@@ -96871,6 +96871,55 @@ function wrappy (fn, cb) {
|
||||
}).call(this);
|
||||
|
||||
|
||||
/***/ }),
|
||||
|
||||
/***/ 436:
|
||||
/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) {
|
||||
|
||||
"use strict";
|
||||
|
||||
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
||||
if (k2 === undefined) k2 = k;
|
||||
var desc = Object.getOwnPropertyDescriptor(m, k);
|
||||
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
||||
desc = { enumerable: true, get: function() { return m[k]; } };
|
||||
}
|
||||
Object.defineProperty(o, k2, desc);
|
||||
}) : (function(o, m, k, k2) {
|
||||
if (k2 === undefined) k2 = k;
|
||||
o[k2] = m[k];
|
||||
}));
|
||||
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
||||
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
||||
}) : function(o, v) {
|
||||
o["default"] = v;
|
||||
});
|
||||
var __importStar = (this && this.__importStar) || function (mod) {
|
||||
if (mod && mod.__esModule) return mod;
|
||||
var result = {};
|
||||
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
||||
__setModuleDefault(result, mod);
|
||||
return result;
|
||||
};
|
||||
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
||||
exports.run = void 0;
|
||||
const setupGradle = __importStar(__nccwpck_require__(8652));
|
||||
const configuration_1 = __nccwpck_require__(5778);
|
||||
const errors_1 = __nccwpck_require__(6976);
|
||||
process.on('uncaughtException', e => (0, errors_1.handlePostActionError)(e));
|
||||
async function run() {
|
||||
try {
|
||||
await setupGradle.complete(new configuration_1.CacheConfig(), new configuration_1.SummaryConfig());
|
||||
}
|
||||
catch (error) {
|
||||
(0, errors_1.handlePostActionError)(error);
|
||||
}
|
||||
process.exit();
|
||||
}
|
||||
exports.run = run;
|
||||
run();
|
||||
|
||||
|
||||
/***/ }),
|
||||
|
||||
/***/ 2107:
|
||||
@@ -96902,14 +96951,28 @@ var __importStar = (this && this.__importStar) || function (mod) {
|
||||
return result;
|
||||
};
|
||||
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
||||
exports.markBuildResultsProcessed = exports.loadBuildResults = void 0;
|
||||
exports.markBuildResultsProcessed = exports.loadBuildResults = exports.BuildResults = void 0;
|
||||
const fs = __importStar(__nccwpck_require__(7147));
|
||||
const path = __importStar(__nccwpck_require__(1017));
|
||||
class BuildResults {
|
||||
constructor(results) {
|
||||
this.results = results;
|
||||
}
|
||||
anyFailed() {
|
||||
return this.results.some(result => result.buildFailed);
|
||||
}
|
||||
uniqueGradleHomes() {
|
||||
const allHomes = this.results.map(buildResult => buildResult.gradleHomeDir);
|
||||
return Array.from(new Set(allHomes));
|
||||
}
|
||||
}
|
||||
exports.BuildResults = BuildResults;
|
||||
function loadBuildResults() {
|
||||
return getUnprocessedResults().map(filePath => {
|
||||
const results = getUnprocessedResults().map(filePath => {
|
||||
const content = fs.readFileSync(filePath, 'utf8');
|
||||
return JSON.parse(content);
|
||||
});
|
||||
return new BuildResults(results);
|
||||
}
|
||||
exports.loadBuildResults = loadBuildResults;
|
||||
function markBuildResultsProcessed() {
|
||||
@@ -97148,15 +97211,25 @@ var __importStar = (this && this.__importStar) || function (mod) {
|
||||
return result;
|
||||
};
|
||||
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
||||
exports.generateCachingReport = exports.CacheEntryListener = exports.CacheListener = void 0;
|
||||
exports.generateCachingReport = exports.CacheEntryListener = exports.CacheListener = exports.CLEANUP_DISABLED_DUE_TO_FAILURE = exports.DEFAULT_CLEANUP_ENABLED_REASON = exports.DEFAULT_CLEANUP_DISABLED_REASON = exports.CLEANUP_DISABLED_READONLY = exports.EXISTING_GRADLE_HOME = exports.DEFAULT_WRITEONLY_REASON = exports.DEFAULT_DISABLED_REASON = exports.DEFAULT_READONLY_REASON = exports.DEFAULT_CACHE_ENABLED_REASON = void 0;
|
||||
const cache = __importStar(__nccwpck_require__(7799));
|
||||
exports.DEFAULT_CACHE_ENABLED_REASON = `[Cache was enabled](https://github.com/gradle/actions/blob/v3/docs/setup-gradle.md#caching-build-state-between-jobs). Action attempted to both restore and save the Gradle User Home.`;
|
||||
exports.DEFAULT_READONLY_REASON = `[Cache was read-only](https://github.com/gradle/actions/blob/v3/docs/setup-gradle.md#using-the-cache-read-only). By default, the action will only write to the cache for Jobs running on the default branch.`;
|
||||
exports.DEFAULT_DISABLED_REASON = `[Cache was disabled](https://github.com/gradle/actions/blob/v3/docs/setup-gradle.md#disabling-caching) via action confiugration. Gradle User Home was not restored from or saved to the cache.`;
|
||||
exports.DEFAULT_WRITEONLY_REASON = `[Cache was set to write-only](https://github.com/gradle/actions/blob/v3/docs/setup-gradle.md#using-the-cache-write-only) via action configuration. Gradle User Home was not restored from cache.`;
|
||||
exports.EXISTING_GRADLE_HOME = `[Cache was disabled to avoid overwriting a pre-existing Gradle User Home](https://github.com/gradle/actions/blob/v3/docs/setup-gradle.md#overwriting-an-existing-gradle-user-home). Gradle User Home was not restored from or saved to the cache.`;
|
||||
exports.CLEANUP_DISABLED_READONLY = `[Cache cleanup](https://github.com/gradle/actions/blob/v3/docs/setup-gradle.md#enabling-cache-cleanup) is always disabled when cache is read-only or disabled.`;
|
||||
exports.DEFAULT_CLEANUP_DISABLED_REASON = `[Cache cleanup](https://github.com/gradle/actions/blob/v3/docs/setup-gradle.md#enabling-cache-cleanup) was not enabled. It must be explicitly enabled.`;
|
||||
exports.DEFAULT_CLEANUP_ENABLED_REASON = `[Cache cleanup](https://github.com/gradle/actions/blob/v3/docs/setup-gradle.md#enabling-cache-cleanup) was enabled.`;
|
||||
exports.CLEANUP_DISABLED_DUE_TO_FAILURE = '[Cache cleanup was disabled due to build failure](https://github.com/gradle/actions/blob/v3/docs/setup-gradle.md#enabling-cache-cleanup). Use `cache-cleanup: always` to override this behavior.';
|
||||
class CacheListener {
|
||||
constructor() {
|
||||
this.cacheEntries = [];
|
||||
this.cacheReadOnly = false;
|
||||
this.cacheWriteOnly = false;
|
||||
this.cacheDisabled = false;
|
||||
this.cacheDisabledReason = 'disabled';
|
||||
this.cacheStatusReason = exports.DEFAULT_CACHE_ENABLED_REASON;
|
||||
this.cacheCleanupMessage = exports.DEFAULT_CLEANUP_DISABLED_REASON;
|
||||
}
|
||||
get fullyRestored() {
|
||||
return this.cacheEntries.every(x => !x.wasRequestedButNotRestored());
|
||||
@@ -97165,13 +97238,33 @@ class CacheListener {
|
||||
if (!cache.isFeatureAvailable())
|
||||
return 'not available';
|
||||
if (this.cacheDisabled)
|
||||
return this.cacheDisabledReason;
|
||||
return 'disabled';
|
||||
if (this.cacheWriteOnly)
|
||||
return 'write-only';
|
||||
if (this.cacheReadOnly)
|
||||
return 'read-only';
|
||||
return 'enabled';
|
||||
}
|
||||
setReadOnly(reason = exports.DEFAULT_READONLY_REASON) {
|
||||
this.cacheReadOnly = true;
|
||||
this.cacheStatusReason = reason;
|
||||
this.cacheCleanupMessage = exports.CLEANUP_DISABLED_READONLY;
|
||||
}
|
||||
setDisabled(reason = exports.DEFAULT_DISABLED_REASON) {
|
||||
this.cacheDisabled = true;
|
||||
this.cacheStatusReason = reason;
|
||||
this.cacheCleanupMessage = exports.CLEANUP_DISABLED_READONLY;
|
||||
}
|
||||
setWriteOnly(reason = exports.DEFAULT_WRITEONLY_REASON) {
|
||||
this.cacheWriteOnly = true;
|
||||
this.cacheStatusReason = reason;
|
||||
}
|
||||
setCacheCleanupEnabled() {
|
||||
this.cacheCleanupMessage = exports.DEFAULT_CLEANUP_ENABLED_REASON;
|
||||
}
|
||||
setCacheCleanupDisabled(reason = exports.DEFAULT_CLEANUP_DISABLED_REASON) {
|
||||
this.cacheCleanupMessage = reason;
|
||||
}
|
||||
entry(name) {
|
||||
for (const entry of this.cacheEntries) {
|
||||
if (entry.entryName === name) {
|
||||
@@ -97241,6 +97334,10 @@ function generateCachingReport(listener) {
|
||||
return `
|
||||
<details>
|
||||
<summary><h4>Caching for Gradle actions was ${listener.cacheStatus} - expand for details</h4></summary>
|
||||
|
||||
- ${listener.cacheStatusReason}
|
||||
- ${listener.cacheCleanupMessage}
|
||||
|
||||
${renderEntryTable(entries)}
|
||||
|
||||
<h5>Cache Entry Details</h5>
|
||||
@@ -97521,6 +97618,7 @@ var __importStar = (this && this.__importStar) || function (mod) {
|
||||
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
||||
exports.save = exports.restore = void 0;
|
||||
const core = __importStar(__nccwpck_require__(2186));
|
||||
const cache_reporting_1 = __nccwpck_require__(7391);
|
||||
const gradle_user_home_cache_1 = __nccwpck_require__(7655);
|
||||
const cache_cleaner_1 = __nccwpck_require__(651);
|
||||
const CACHE_RESTORED_VAR = 'GRADLE_BUILD_ACTION_CACHE_RESTORED';
|
||||
@@ -97534,15 +97632,14 @@ async function restore(userHome, gradleUserHome, cacheListener, cacheConfig) {
|
||||
if (cacheConfig.isCacheDisabled()) {
|
||||
core.info('Cache is disabled: will not restore state from previous builds.');
|
||||
gradleStateCache.init();
|
||||
cacheListener.cacheDisabled = true;
|
||||
cacheListener.setDisabled();
|
||||
return;
|
||||
}
|
||||
if (gradleStateCache.cacheOutputExists()) {
|
||||
if (!cacheConfig.isCacheOverwriteExisting()) {
|
||||
core.info('Gradle User Home already exists: will not restore from cache.');
|
||||
gradleStateCache.init();
|
||||
cacheListener.cacheDisabled = true;
|
||||
cacheListener.cacheDisabledReason = 'disabled due to pre-existing Gradle User Home';
|
||||
cacheListener.setDisabled(cache_reporting_1.EXISTING_GRADLE_HOME);
|
||||
return;
|
||||
}
|
||||
core.info('Gradle User Home already exists: will overwrite with cached contents.');
|
||||
@@ -97551,7 +97648,7 @@ async function restore(userHome, gradleUserHome, cacheListener, cacheConfig) {
|
||||
core.saveState(CACHE_RESTORED_VAR, true);
|
||||
if (cacheConfig.isCacheWriteOnly()) {
|
||||
core.info('Cache is write-only: will not restore from cache.');
|
||||
cacheListener.cacheWriteOnly = true;
|
||||
cacheListener.setWriteOnly();
|
||||
return;
|
||||
}
|
||||
await core.group('Restore Gradle state from cache', async () => {
|
||||
@@ -97564,7 +97661,7 @@ async function restore(userHome, gradleUserHome, cacheListener, cacheConfig) {
|
||||
}
|
||||
}
|
||||
exports.restore = restore;
|
||||
async function save(userHome, gradleUserHome, cacheListener, daemonController, cacheConfig) {
|
||||
async function save(userHome, gradleUserHome, cacheListener, daemonController, buildResults, cacheConfig) {
|
||||
if (cacheConfig.isCacheDisabled()) {
|
||||
core.info('Cache is disabled: will not save state for later builds.');
|
||||
return;
|
||||
@@ -97575,18 +97672,18 @@ async function save(userHome, gradleUserHome, cacheListener, daemonController, c
|
||||
}
|
||||
if (cacheConfig.isCacheReadOnly()) {
|
||||
core.info('Cache is read-only: will not save state for use in subsequent builds.');
|
||||
cacheListener.cacheReadOnly = true;
|
||||
cacheListener.setReadOnly();
|
||||
return;
|
||||
}
|
||||
await daemonController.stopAllDaemons();
|
||||
if (cacheConfig.isCacheCleanupEnabled()) {
|
||||
core.info('Forcing cache cleanup.');
|
||||
const cacheCleaner = new cache_cleaner_1.CacheCleaner(gradleUserHome, process.env['RUNNER_TEMP']);
|
||||
try {
|
||||
await cacheCleaner.forceCleanup();
|
||||
if (cacheConfig.shouldPerformCacheCleanup(buildResults.anyFailed())) {
|
||||
cacheListener.setCacheCleanupEnabled();
|
||||
await performCacheCleanup(gradleUserHome);
|
||||
}
|
||||
catch (e) {
|
||||
core.warning(`Cache cleanup failed. Will continue. ${String(e)}`);
|
||||
else {
|
||||
core.info('Not performing cache-cleanup due to build failure');
|
||||
cacheListener.setCacheCleanupDisabled(cache_reporting_1.CLEANUP_DISABLED_DUE_TO_FAILURE);
|
||||
}
|
||||
}
|
||||
await core.group('Caching Gradle state', async () => {
|
||||
@@ -97594,6 +97691,16 @@ async function save(userHome, gradleUserHome, cacheListener, daemonController, c
|
||||
});
|
||||
}
|
||||
exports.save = save;
|
||||
async function performCacheCleanup(gradleUserHome) {
|
||||
core.info('Forcing cache cleanup.');
|
||||
const cacheCleaner = new cache_cleaner_1.CacheCleaner(gradleUserHome, process.env['RUNNER_TEMP']);
|
||||
try {
|
||||
await cacheCleaner.forceCleanup();
|
||||
}
|
||||
catch (e) {
|
||||
core.warning(`Cache cleanup failed. Will continue. ${String(e)}`);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
/***/ }),
|
||||
@@ -97888,7 +97995,7 @@ class ConfigurationCacheEntryExtractor extends AbstractEntryExtractor {
|
||||
});
|
||||
}
|
||||
getConfigCacheDirectoriesWithAssociatedBuildResults() {
|
||||
return (0, build_results_1.loadBuildResults)().reduce((acc, buildResult) => {
|
||||
return (0, build_results_1.loadBuildResults)().results.reduce((acc, buildResult) => {
|
||||
const configCachePath = path_1.default.resolve(buildResult.rootProjectDir, '.gradle/configuration-cache');
|
||||
if (!fs_1.default.existsSync(configCachePath)) {
|
||||
return acc;
|
||||
@@ -98238,7 +98345,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
||||
return (mod && mod.__esModule) ? mod : { "default": mod };
|
||||
};
|
||||
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
||||
exports.parseNumericInput = exports.setActionId = exports.getActionId = exports.getWorkspaceDirectory = exports.getGithubToken = exports.getJobMatrix = exports.doValidateWrappers = exports.GradleExecutionConfig = exports.BuildScanConfig = exports.JobSummaryOption = exports.SummaryConfig = exports.CacheConfig = exports.DependencyGraphOption = exports.DependencyGraphConfig = void 0;
|
||||
exports.parseNumericInput = exports.setActionId = exports.getActionId = exports.getWorkspaceDirectory = exports.getGithubToken = exports.getJobMatrix = exports.doValidateWrappers = exports.GradleExecutionConfig = exports.BuildScanConfig = exports.JobSummaryOption = exports.SummaryConfig = exports.CacheCleanupOption = exports.CacheConfig = exports.DependencyGraphOption = exports.DependencyGraphConfig = void 0;
|
||||
const core = __importStar(__nccwpck_require__(2186));
|
||||
const github = __importStar(__nccwpck_require__(5438));
|
||||
const cache = __importStar(__nccwpck_require__(7799));
|
||||
@@ -98332,7 +98439,35 @@ class CacheConfig {
|
||||
return getBooleanInput('gradle-home-cache-strict-match');
|
||||
}
|
||||
isCacheCleanupEnabled() {
|
||||
return getBooleanInput('gradle-home-cache-cleanup') && !this.isCacheReadOnly();
|
||||
if (this.isCacheReadOnly()) {
|
||||
return false;
|
||||
}
|
||||
const cleanupOption = this.getCacheCleanupOption();
|
||||
return cleanupOption === CacheCleanupOption.Always || cleanupOption === CacheCleanupOption.OnSuccess;
|
||||
}
|
||||
shouldPerformCacheCleanup(hasFailure) {
|
||||
const cleanupOption = this.getCacheCleanupOption();
|
||||
if (cleanupOption === CacheCleanupOption.Always) {
|
||||
return true;
|
||||
}
|
||||
if (cleanupOption === CacheCleanupOption.OnSuccess) {
|
||||
return !hasFailure;
|
||||
}
|
||||
return false;
|
||||
}
|
||||
getCacheCleanupOption() {
|
||||
const val = core.getInput('cache-cleanup');
|
||||
switch (val.toLowerCase().trim()) {
|
||||
case 'always':
|
||||
return CacheCleanupOption.Always;
|
||||
case 'on-success':
|
||||
return CacheCleanupOption.OnSuccess;
|
||||
case 'never':
|
||||
return getBooleanInput('gradle-home-cache-cleanup')
|
||||
? CacheCleanupOption.Always
|
||||
: CacheCleanupOption.Never;
|
||||
}
|
||||
throw TypeError(`The value '${val}' is not valid for cache-cleanup. Valid values are: [never, always, on-success].`);
|
||||
}
|
||||
getCacheEncryptionKey() {
|
||||
return core.getInput('cache-encryption-key');
|
||||
@@ -98345,6 +98480,12 @@ class CacheConfig {
|
||||
}
|
||||
}
|
||||
exports.CacheConfig = CacheConfig;
|
||||
var CacheCleanupOption;
|
||||
(function (CacheCleanupOption) {
|
||||
CacheCleanupOption["Never"] = "never";
|
||||
CacheCleanupOption["OnSuccess"] = "on-success";
|
||||
CacheCleanupOption["Always"] = "always";
|
||||
})(CacheCleanupOption || (exports.CacheCleanupOption = CacheCleanupOption = {}));
|
||||
class SummaryConfig {
|
||||
shouldGenerateJobSummary(hasFailure) {
|
||||
if (!process.env[summary_1.SUMMARY_ENV_VAR]) {
|
||||
@@ -98592,8 +98733,7 @@ const fs = __importStar(__nccwpck_require__(7147));
|
||||
const path = __importStar(__nccwpck_require__(1017));
|
||||
class DaemonController {
|
||||
constructor(buildResults) {
|
||||
const allHomes = buildResults.map(buildResult => buildResult.gradleHomeDir);
|
||||
this.gradleHomes = Array.from(new Set(allHomes));
|
||||
this.gradleHomes = buildResults.uniqueGradleHomes();
|
||||
}
|
||||
async stopAllDaemons() {
|
||||
core.info('Stopping all Gradle daemons before saving Gradle User Home state');
|
||||
@@ -98616,55 +98756,6 @@ class DaemonController {
|
||||
exports.DaemonController = DaemonController;
|
||||
|
||||
|
||||
/***/ }),
|
||||
|
||||
/***/ 8594:
|
||||
/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) {
|
||||
|
||||
"use strict";
|
||||
|
||||
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
||||
if (k2 === undefined) k2 = k;
|
||||
var desc = Object.getOwnPropertyDescriptor(m, k);
|
||||
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
||||
desc = { enumerable: true, get: function() { return m[k]; } };
|
||||
}
|
||||
Object.defineProperty(o, k2, desc);
|
||||
}) : (function(o, m, k, k2) {
|
||||
if (k2 === undefined) k2 = k;
|
||||
o[k2] = m[k];
|
||||
}));
|
||||
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
||||
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
||||
}) : function(o, v) {
|
||||
o["default"] = v;
|
||||
});
|
||||
var __importStar = (this && this.__importStar) || function (mod) {
|
||||
if (mod && mod.__esModule) return mod;
|
||||
var result = {};
|
||||
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
||||
__setModuleDefault(result, mod);
|
||||
return result;
|
||||
};
|
||||
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
||||
exports.run = void 0;
|
||||
const setupGradle = __importStar(__nccwpck_require__(8652));
|
||||
const configuration_1 = __nccwpck_require__(5778);
|
||||
const errors_1 = __nccwpck_require__(6976);
|
||||
process.on('uncaughtException', e => (0, errors_1.handlePostActionError)(e));
|
||||
async function run() {
|
||||
try {
|
||||
await setupGradle.complete(new configuration_1.CacheConfig(), new configuration_1.SummaryConfig());
|
||||
}
|
||||
catch (error) {
|
||||
(0, errors_1.handlePostActionError)(error);
|
||||
}
|
||||
process.exit();
|
||||
}
|
||||
exports.run = run;
|
||||
run();
|
||||
|
||||
|
||||
/***/ }),
|
||||
|
||||
/***/ 2572:
|
||||
@@ -99419,8 +99510,8 @@ const request_error_1 = __nccwpck_require__(537);
|
||||
const configuration_1 = __nccwpck_require__(5778);
|
||||
const deprecation_collector_1 = __nccwpck_require__(2572);
|
||||
async function generateJobSummary(buildResults, cachingReport, config) {
|
||||
const summaryTable = renderSummaryTable(buildResults);
|
||||
const hasFailure = buildResults.some(result => result.buildFailed);
|
||||
const summaryTable = renderSummaryTable(buildResults.results);
|
||||
const hasFailure = buildResults.anyFailed();
|
||||
if (config.shouldGenerateJobSummary(hasFailure)) {
|
||||
core.info('Generating Job Summary');
|
||||
core.summary.addRaw(summaryTable);
|
||||
@@ -99652,7 +99743,7 @@ async function complete(cacheConfig, summaryConfig) {
|
||||
const gradleUserHome = core.getState(GRADLE_USER_HOME);
|
||||
const cacheListener = cache_reporting_1.CacheListener.rehydrate(core.getState(CACHE_LISTENER));
|
||||
const daemonController = new daemon_controller_1.DaemonController(buildResults);
|
||||
await caches.save(userHome, gradleUserHome, cacheListener, daemonController, cacheConfig);
|
||||
await caches.save(userHome, gradleUserHome, cacheListener, daemonController, buildResults, cacheConfig);
|
||||
const cachingReport = (0, cache_reporting_1.generateCachingReport)(cacheListener);
|
||||
await jobSummary.generateJobSummary(buildResults, cachingReport, summaryConfig);
|
||||
(0, build_results_1.markBuildResultsProcessed)();
|
||||
@@ -100385,7 +100476,7 @@ module.exports = JSON.parse('[{"version":"8.9","checksum":"498495120a03b9a6ab5d1
|
||||
/******/ // startup
|
||||
/******/ // Load entry module and return exports
|
||||
/******/ // This entry module is referenced by other modules so it can't be inlined
|
||||
/******/ var __webpack_exports__ = __nccwpck_require__(8594);
|
||||
/******/ var __webpack_exports__ = __nccwpck_require__(436);
|
||||
/******/ module.exports = __webpack_exports__;
|
||||
/******/
|
||||
/******/ })()
|
||||
|
||||
2
dist/dependency-submission/post/index.js.map
vendored
2
dist/dependency-submission/post/index.js.map
vendored
File diff suppressed because one or more lines are too long
Reference in New Issue
Block a user