mirror of
https://github.com/gradle/actions.git
synced 2025-08-26 11:51:27 +08:00
Build outputs
This commit is contained in:
parent
a628cf9f2e
commit
3c5c811777
24
dist/main/index.js
vendored
24
dist/main/index.js
vendored
@ -139014,7 +139014,7 @@ const params = __importStar(__nccwpck_require__(23885));
|
|||||||
const cache_utils_1 = __nccwpck_require__(41678);
|
const cache_utils_1 = __nccwpck_require__(41678);
|
||||||
const cache_extract_entries_1 = __nccwpck_require__(76161);
|
const cache_extract_entries_1 = __nccwpck_require__(76161);
|
||||||
const RESTORED_CACHE_KEY_KEY = 'restored-cache-key';
|
const RESTORED_CACHE_KEY_KEY = 'restored-cache-key';
|
||||||
exports.META_FILE_DIR = '.gradle-build-action';
|
exports.META_FILE_DIR = '.setup-gradle';
|
||||||
class GradleStateCache {
|
class GradleStateCache {
|
||||||
constructor(userHome, gradleUserHome) {
|
constructor(userHome, gradleUserHome) {
|
||||||
this.userHome = userHome;
|
this.userHome = userHome;
|
||||||
@ -139140,7 +139140,7 @@ class GradleStateCache {
|
|||||||
return path_1.default.resolve(this.gradleUserHome, rawPath);
|
return path_1.default.resolve(this.gradleUserHome, rawPath);
|
||||||
}
|
}
|
||||||
initializeGradleUserHome() {
|
initializeGradleUserHome() {
|
||||||
const actionCacheDir = path_1.default.resolve(this.gradleUserHome, '.gradle-build-action');
|
const actionCacheDir = path_1.default.resolve(this.gradleUserHome, exports.META_FILE_DIR);
|
||||||
fs_1.default.mkdirSync(actionCacheDir, { recursive: true });
|
fs_1.default.mkdirSync(actionCacheDir, { recursive: true });
|
||||||
this.copyInitScripts();
|
this.copyInitScripts();
|
||||||
this.registerToolchains();
|
this.registerToolchains();
|
||||||
@ -139149,11 +139149,11 @@ class GradleStateCache {
|
|||||||
const initScriptsDir = path_1.default.resolve(this.gradleUserHome, 'init.d');
|
const initScriptsDir = path_1.default.resolve(this.gradleUserHome, 'init.d');
|
||||||
fs_1.default.mkdirSync(initScriptsDir, { recursive: true });
|
fs_1.default.mkdirSync(initScriptsDir, { recursive: true });
|
||||||
const initScriptFilenames = [
|
const initScriptFilenames = [
|
||||||
'gradle-build-action.build-result-capture.init.gradle',
|
'gradle-actions.build-result-capture.init.gradle',
|
||||||
'gradle-build-action.build-result-capture-service.plugin.groovy',
|
'gradle-actions.build-result-capture-service.plugin.groovy',
|
||||||
'gradle-build-action.github-dependency-graph.init.gradle',
|
'gradle-actions.github-dependency-graph.init.gradle',
|
||||||
'gradle-build-action.github-dependency-graph-gradle-plugin-apply.groovy',
|
'gradle-actions.github-dependency-graph-gradle-plugin-apply.groovy',
|
||||||
'gradle-build-action.inject-develocity.init.gradle'
|
'gradle-actions.inject-develocity.init.gradle'
|
||||||
];
|
];
|
||||||
for (const initScriptFilename of initScriptFilenames) {
|
for (const initScriptFilename of initScriptFilenames) {
|
||||||
const initScriptContent = this.readResourceFileAsString('init-scripts', initScriptFilename);
|
const initScriptContent = this.readResourceFileAsString('init-scripts', initScriptFilename);
|
||||||
@ -139801,7 +139801,7 @@ function generateCachingReport(listener) {
|
|||||||
const entries = listener.cacheEntries;
|
const entries = listener.cacheEntries;
|
||||||
return `
|
return `
|
||||||
<details>
|
<details>
|
||||||
<summary><h4>Caching for gradle-build-action was ${listener.cacheStatus} - expand for details</h4></summary>
|
<summary><h4>Caching for Gradle actions was ${listener.cacheStatus} - expand for details</h4></summary>
|
||||||
${renderEntryTable(entries)}
|
${renderEntryTable(entries)}
|
||||||
|
|
||||||
<h5>Cache Entry Details</h5>
|
<h5>Cache Entry Details</h5>
|
||||||
@ -141038,7 +141038,7 @@ function addPRComment(jobSummary) {
|
|||||||
}
|
}
|
||||||
const pull_request_number = context.payload.pull_request.number;
|
const pull_request_number = context.payload.pull_request.number;
|
||||||
core.info(`Adding Job Summary as comment to PR #${pull_request_number}.`);
|
core.info(`Adding Job Summary as comment to PR #${pull_request_number}.`);
|
||||||
const prComment = `<h3>Job Summary for gradle-build-action</h3>
|
const prComment = `<h3>Job Summary for Gradle</h3>
|
||||||
<h5>${github.context.workflow} :: <em>${github.context.job}</em></h5>
|
<h5>${github.context.workflow} :: <em>${github.context.job}</em></h5>
|
||||||
|
|
||||||
${jobSummary}`;
|
${jobSummary}`;
|
||||||
@ -141423,7 +141423,7 @@ function httpGetGradleVersions(url) {
|
|||||||
}
|
}
|
||||||
function httpGetString(url) {
|
function httpGetString(url) {
|
||||||
return __awaiter(this, void 0, void 0, function* () {
|
return __awaiter(this, void 0, void 0, function* () {
|
||||||
const httpClient = new httpm.HttpClient('gradle/gradle-build-action');
|
const httpClient = new httpm.HttpClient('gradle/actions');
|
||||||
const response = yield httpClient.get(url);
|
const response = yield httpClient.get(url);
|
||||||
return response.readBody();
|
return response.readBody();
|
||||||
});
|
});
|
||||||
@ -141542,7 +141542,7 @@ function setup() {
|
|||||||
const userHome = yield determineUserHome();
|
const userHome = yield determineUserHome();
|
||||||
const gradleUserHome = yield determineGradleUserHome();
|
const gradleUserHome = yield determineGradleUserHome();
|
||||||
if (process.env[GRADLE_SETUP_VAR]) {
|
if (process.env[GRADLE_SETUP_VAR]) {
|
||||||
core.info('Gradle setup only performed on first gradle-build-action step in workflow.');
|
core.info('Gradle setup only performed on first gradle/actions step in workflow.');
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
core.exportVariable(GRADLE_SETUP_VAR, true);
|
core.exportVariable(GRADLE_SETUP_VAR, true);
|
||||||
@ -141560,7 +141560,7 @@ exports.setup = setup;
|
|||||||
function complete() {
|
function complete() {
|
||||||
return __awaiter(this, void 0, void 0, function* () {
|
return __awaiter(this, void 0, void 0, function* () {
|
||||||
if (!core.getState(GRADLE_SETUP_VAR)) {
|
if (!core.getState(GRADLE_SETUP_VAR)) {
|
||||||
core.info('Gradle setup post-action only performed for first gradle-build-action step in workflow.');
|
core.info('Gradle setup post-action only performed for first gradle/actions step in workflow.');
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
core.info('In post-action step');
|
core.info('In post-action step');
|
||||||
|
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
22
dist/post/index.js
vendored
22
dist/post/index.js
vendored
@ -136467,7 +136467,7 @@ const params = __importStar(__nccwpck_require__(23885));
|
|||||||
const cache_utils_1 = __nccwpck_require__(41678);
|
const cache_utils_1 = __nccwpck_require__(41678);
|
||||||
const cache_extract_entries_1 = __nccwpck_require__(76161);
|
const cache_extract_entries_1 = __nccwpck_require__(76161);
|
||||||
const RESTORED_CACHE_KEY_KEY = 'restored-cache-key';
|
const RESTORED_CACHE_KEY_KEY = 'restored-cache-key';
|
||||||
exports.META_FILE_DIR = '.gradle-build-action';
|
exports.META_FILE_DIR = '.setup-gradle';
|
||||||
class GradleStateCache {
|
class GradleStateCache {
|
||||||
constructor(userHome, gradleUserHome) {
|
constructor(userHome, gradleUserHome) {
|
||||||
this.userHome = userHome;
|
this.userHome = userHome;
|
||||||
@ -136593,7 +136593,7 @@ class GradleStateCache {
|
|||||||
return path_1.default.resolve(this.gradleUserHome, rawPath);
|
return path_1.default.resolve(this.gradleUserHome, rawPath);
|
||||||
}
|
}
|
||||||
initializeGradleUserHome() {
|
initializeGradleUserHome() {
|
||||||
const actionCacheDir = path_1.default.resolve(this.gradleUserHome, '.gradle-build-action');
|
const actionCacheDir = path_1.default.resolve(this.gradleUserHome, exports.META_FILE_DIR);
|
||||||
fs_1.default.mkdirSync(actionCacheDir, { recursive: true });
|
fs_1.default.mkdirSync(actionCacheDir, { recursive: true });
|
||||||
this.copyInitScripts();
|
this.copyInitScripts();
|
||||||
this.registerToolchains();
|
this.registerToolchains();
|
||||||
@ -136602,11 +136602,11 @@ class GradleStateCache {
|
|||||||
const initScriptsDir = path_1.default.resolve(this.gradleUserHome, 'init.d');
|
const initScriptsDir = path_1.default.resolve(this.gradleUserHome, 'init.d');
|
||||||
fs_1.default.mkdirSync(initScriptsDir, { recursive: true });
|
fs_1.default.mkdirSync(initScriptsDir, { recursive: true });
|
||||||
const initScriptFilenames = [
|
const initScriptFilenames = [
|
||||||
'gradle-build-action.build-result-capture.init.gradle',
|
'gradle-actions.build-result-capture.init.gradle',
|
||||||
'gradle-build-action.build-result-capture-service.plugin.groovy',
|
'gradle-actions.build-result-capture-service.plugin.groovy',
|
||||||
'gradle-build-action.github-dependency-graph.init.gradle',
|
'gradle-actions.github-dependency-graph.init.gradle',
|
||||||
'gradle-build-action.github-dependency-graph-gradle-plugin-apply.groovy',
|
'gradle-actions.github-dependency-graph-gradle-plugin-apply.groovy',
|
||||||
'gradle-build-action.inject-develocity.init.gradle'
|
'gradle-actions.inject-develocity.init.gradle'
|
||||||
];
|
];
|
||||||
for (const initScriptFilename of initScriptFilenames) {
|
for (const initScriptFilename of initScriptFilenames) {
|
||||||
const initScriptContent = this.readResourceFileAsString('init-scripts', initScriptFilename);
|
const initScriptContent = this.readResourceFileAsString('init-scripts', initScriptFilename);
|
||||||
@ -137254,7 +137254,7 @@ function generateCachingReport(listener) {
|
|||||||
const entries = listener.cacheEntries;
|
const entries = listener.cacheEntries;
|
||||||
return `
|
return `
|
||||||
<details>
|
<details>
|
||||||
<summary><h4>Caching for gradle-build-action was ${listener.cacheStatus} - expand for details</h4></summary>
|
<summary><h4>Caching for Gradle actions was ${listener.cacheStatus} - expand for details</h4></summary>
|
||||||
${renderEntryTable(entries)}
|
${renderEntryTable(entries)}
|
||||||
|
|
||||||
<h5>Cache Entry Details</h5>
|
<h5>Cache Entry Details</h5>
|
||||||
@ -138359,7 +138359,7 @@ function addPRComment(jobSummary) {
|
|||||||
}
|
}
|
||||||
const pull_request_number = context.payload.pull_request.number;
|
const pull_request_number = context.payload.pull_request.number;
|
||||||
core.info(`Adding Job Summary as comment to PR #${pull_request_number}.`);
|
core.info(`Adding Job Summary as comment to PR #${pull_request_number}.`);
|
||||||
const prComment = `<h3>Job Summary for gradle-build-action</h3>
|
const prComment = `<h3>Job Summary for Gradle</h3>
|
||||||
<h5>${github.context.workflow} :: <em>${github.context.job}</em></h5>
|
<h5>${github.context.workflow} :: <em>${github.context.job}</em></h5>
|
||||||
|
|
||||||
${jobSummary}`;
|
${jobSummary}`;
|
||||||
@ -138639,7 +138639,7 @@ function setup() {
|
|||||||
const userHome = yield determineUserHome();
|
const userHome = yield determineUserHome();
|
||||||
const gradleUserHome = yield determineGradleUserHome();
|
const gradleUserHome = yield determineGradleUserHome();
|
||||||
if (process.env[GRADLE_SETUP_VAR]) {
|
if (process.env[GRADLE_SETUP_VAR]) {
|
||||||
core.info('Gradle setup only performed on first gradle-build-action step in workflow.');
|
core.info('Gradle setup only performed on first gradle/actions step in workflow.');
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
core.exportVariable(GRADLE_SETUP_VAR, true);
|
core.exportVariable(GRADLE_SETUP_VAR, true);
|
||||||
@ -138657,7 +138657,7 @@ exports.setup = setup;
|
|||||||
function complete() {
|
function complete() {
|
||||||
return __awaiter(this, void 0, void 0, function* () {
|
return __awaiter(this, void 0, void 0, function* () {
|
||||||
if (!core.getState(GRADLE_SETUP_VAR)) {
|
if (!core.getState(GRADLE_SETUP_VAR)) {
|
||||||
core.info('Gradle setup post-action only performed for first gradle-build-action step in workflow.');
|
core.info('Gradle setup post-action only performed for first gradle/actions step in workflow.');
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
core.info('In post-action step');
|
core.info('In post-action step');
|
||||||
|
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…
x
Reference in New Issue
Block a user