Skip to content

Commit

Permalink
[bot] Update dist directory
Browse files Browse the repository at this point in the history
  • Loading branch information
bigdaz committed Jul 22, 2024
1 parent 1a11891 commit 6c9e547
Show file tree
Hide file tree
Showing 10 changed files with 157 additions and 50 deletions.
42 changes: 33 additions & 9 deletions dist/dependency-submission/main/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -145251,11 +145251,12 @@ var __importStar = (this && this.__importStar) || function (mod) {
return result;
};
Object.defineProperty(exports, "__esModule", ({ value: true }));
exports.restoreDeprecationState = exports.saveDeprecationState = exports.emitDeprecationWarnings = exports.getDeprecations = exports.failOnUseOfRemovedFeature = exports.recordDeprecation = exports.Deprecation = void 0;
exports.restoreDeprecationState = exports.saveDeprecationState = exports.emitDeprecationWarnings = exports.getErrors = exports.getDeprecations = exports.failOnUseOfRemovedFeature = exports.recordDeprecation = exports.Deprecation = void 0;
const core = __importStar(__nccwpck_require__(42186));
const configuration_1 = __nccwpck_require__(15778);
const DEPRECATION_UPGRADE_PAGE = 'https://github.com/gradle/actions/blob/main/docs/deprecation-upgrade-guide.md';
const recordedDeprecations = [];
const recordedErrors = [];
class Deprecation {
constructor(message) {
this.message = message;
Expand All @@ -145277,13 +145278,19 @@ function recordDeprecation(message) {
exports.recordDeprecation = recordDeprecation;
function failOnUseOfRemovedFeature(removalMessage, deprecationMessage = removalMessage) {
const deprecation = new Deprecation(deprecationMessage);
core.error(`${removalMessage}. See ${deprecation.getDocumentationLink()}`);
const errorMessage = `${removalMessage}. See ${deprecation.getDocumentationLink()}`;
recordedErrors.push(errorMessage);
core.setFailed(errorMessage);
}
exports.failOnUseOfRemovedFeature = failOnUseOfRemovedFeature;
function getDeprecations() {
return recordedDeprecations;
}
exports.getDeprecations = getDeprecations;
function getErrors() {
return recordedErrors;
}
exports.getErrors = getErrors;
function emitDeprecationWarnings(hasJobSummary = true) {
if (recordedDeprecations.length > 0) {
core.warning(`This job uses deprecated functionality from the '${(0, configuration_1.getActionId)()}' action. Consult the ${hasJobSummary ? 'Job Summary' : 'logs'} for more details.`);
Expand All @@ -145294,17 +145301,21 @@ function emitDeprecationWarnings(hasJobSummary = true) {
}
exports.emitDeprecationWarnings = emitDeprecationWarnings;
function saveDeprecationState() {
core.saveState('deprecations', JSON.stringify(recordedDeprecations));
core.saveState('deprecation-collector_deprecations', JSON.stringify(recordedDeprecations));
core.saveState('deprecation-collector_errors', JSON.stringify(recordedErrors));
}
exports.saveDeprecationState = saveDeprecationState;
function restoreDeprecationState() {
const stringRep = core.getState('deprecations');
if (stringRep === '') {
return;
const savedDeprecations = core.getState('deprecation-collector_deprecations');
if (savedDeprecations) {
JSON.parse(savedDeprecations).forEach((obj) => {
recordedDeprecations.push(new Deprecation(obj.message));
});
}
const savedErrors = core.getState('deprecation-collector_errors');
if (savedErrors) {
recordedErrors.push(...JSON.parse(savedErrors));
}
JSON.parse(stringRep).forEach((obj) => {
recordedDeprecations.push(new Deprecation(obj.message));
});
}
exports.restoreDeprecationState = restoreDeprecationState;

Expand Down Expand Up @@ -146003,6 +146014,12 @@ const request_error_1 = __nccwpck_require__(10537);
const configuration_1 = __nccwpck_require__(15778);
const deprecation_collector_1 = __nccwpck_require__(22572);
async function generateJobSummary(buildResults, cachingReport, config) {
const errors = renderErrors();
if (errors) {
core.summary.addRaw(errors);
await core.summary.write();
return;
}
const summaryTable = renderSummaryTable(buildResults.results);
const hasFailure = buildResults.anyFailed();
if (config.shouldGenerateJobSummary(hasFailure)) {
Expand Down Expand Up @@ -146069,6 +146086,13 @@ function renderSummaryTable(results) {
return `${renderDeprecations()}\n${renderBuildResults(results)}`;
}
exports.renderSummaryTable = renderSummaryTable;
function renderErrors() {
const errors = (0, deprecation_collector_1.getErrors)();
if (errors.length === 0) {
return undefined;
}
return errors.map(error => `<b>:x: ${error}</b>`).join('\n');
}
function renderDeprecations() {
const deprecations = (0, deprecation_collector_1.getDeprecations)();
if (deprecations.length === 0) {
Expand Down
2 changes: 1 addition & 1 deletion dist/dependency-submission/main/index.js.map

Large diffs are not rendered by default.

42 changes: 33 additions & 9 deletions dist/dependency-submission/post/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -98930,11 +98930,12 @@ var __importStar = (this && this.__importStar) || function (mod) {
return result;
};
Object.defineProperty(exports, "__esModule", ({ value: true }));
exports.restoreDeprecationState = exports.saveDeprecationState = exports.emitDeprecationWarnings = exports.getDeprecations = exports.failOnUseOfRemovedFeature = exports.recordDeprecation = exports.Deprecation = void 0;
exports.restoreDeprecationState = exports.saveDeprecationState = exports.emitDeprecationWarnings = exports.getErrors = exports.getDeprecations = exports.failOnUseOfRemovedFeature = exports.recordDeprecation = exports.Deprecation = void 0;
const core = __importStar(__nccwpck_require__(2186));
const configuration_1 = __nccwpck_require__(5778);
const DEPRECATION_UPGRADE_PAGE = 'https://github.com/gradle/actions/blob/main/docs/deprecation-upgrade-guide.md';
const recordedDeprecations = [];
const recordedErrors = [];
class Deprecation {
constructor(message) {
this.message = message;
Expand All @@ -98956,13 +98957,19 @@ function recordDeprecation(message) {
exports.recordDeprecation = recordDeprecation;
function failOnUseOfRemovedFeature(removalMessage, deprecationMessage = removalMessage) {
const deprecation = new Deprecation(deprecationMessage);
core.error(`${removalMessage}. See ${deprecation.getDocumentationLink()}`);
const errorMessage = `${removalMessage}. See ${deprecation.getDocumentationLink()}`;
recordedErrors.push(errorMessage);
core.setFailed(errorMessage);
}
exports.failOnUseOfRemovedFeature = failOnUseOfRemovedFeature;
function getDeprecations() {
return recordedDeprecations;
}
exports.getDeprecations = getDeprecations;
function getErrors() {
return recordedErrors;
}
exports.getErrors = getErrors;
function emitDeprecationWarnings(hasJobSummary = true) {
if (recordedDeprecations.length > 0) {
core.warning(`This job uses deprecated functionality from the '${(0, configuration_1.getActionId)()}' action. Consult the ${hasJobSummary ? 'Job Summary' : 'logs'} for more details.`);
Expand All @@ -98973,17 +98980,21 @@ function emitDeprecationWarnings(hasJobSummary = true) {
}
exports.emitDeprecationWarnings = emitDeprecationWarnings;
function saveDeprecationState() {
core.saveState('deprecations', JSON.stringify(recordedDeprecations));
core.saveState('deprecation-collector_deprecations', JSON.stringify(recordedDeprecations));
core.saveState('deprecation-collector_errors', JSON.stringify(recordedErrors));
}
exports.saveDeprecationState = saveDeprecationState;
function restoreDeprecationState() {
const stringRep = core.getState('deprecations');
if (stringRep === '') {
return;
const savedDeprecations = core.getState('deprecation-collector_deprecations');
if (savedDeprecations) {
JSON.parse(savedDeprecations).forEach((obj) => {
recordedDeprecations.push(new Deprecation(obj.message));
});
}
const savedErrors = core.getState('deprecation-collector_errors');
if (savedErrors) {
recordedErrors.push(...JSON.parse(savedErrors));
}
JSON.parse(stringRep).forEach((obj) => {
recordedDeprecations.push(new Deprecation(obj.message));
});
}
exports.restoreDeprecationState = restoreDeprecationState;

Expand Down Expand Up @@ -99682,6 +99693,12 @@ 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 errors = renderErrors();
if (errors) {
core.summary.addRaw(errors);
await core.summary.write();
return;
}
const summaryTable = renderSummaryTable(buildResults.results);
const hasFailure = buildResults.anyFailed();
if (config.shouldGenerateJobSummary(hasFailure)) {
Expand Down Expand Up @@ -99748,6 +99765,13 @@ function renderSummaryTable(results) {
return `${renderDeprecations()}\n${renderBuildResults(results)}`;
}
exports.renderSummaryTable = renderSummaryTable;
function renderErrors() {
const errors = (0, deprecation_collector_1.getErrors)();
if (errors.length === 0) {
return undefined;
}
return errors.map(error => `<b>:x: ${error}</b>`).join('\n');
}
function renderDeprecations() {
const deprecations = (0, deprecation_collector_1.getDeprecations)();
if (deprecations.length === 0) {
Expand Down
2 changes: 1 addition & 1 deletion dist/dependency-submission/post/index.js.map

Large diffs are not rendered by default.

42 changes: 33 additions & 9 deletions dist/setup-gradle/main/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -145239,11 +145239,12 @@ var __importStar = (this && this.__importStar) || function (mod) {
return result;
};
Object.defineProperty(exports, "__esModule", ({ value: true }));
exports.restoreDeprecationState = exports.saveDeprecationState = exports.emitDeprecationWarnings = exports.getDeprecations = exports.failOnUseOfRemovedFeature = exports.recordDeprecation = exports.Deprecation = void 0;
exports.restoreDeprecationState = exports.saveDeprecationState = exports.emitDeprecationWarnings = exports.getErrors = exports.getDeprecations = exports.failOnUseOfRemovedFeature = exports.recordDeprecation = exports.Deprecation = void 0;
const core = __importStar(__nccwpck_require__(42186));
const configuration_1 = __nccwpck_require__(15778);
const DEPRECATION_UPGRADE_PAGE = 'https://github.com/gradle/actions/blob/main/docs/deprecation-upgrade-guide.md';
const recordedDeprecations = [];
const recordedErrors = [];
class Deprecation {
constructor(message) {
this.message = message;
Expand All @@ -145265,13 +145266,19 @@ function recordDeprecation(message) {
exports.recordDeprecation = recordDeprecation;
function failOnUseOfRemovedFeature(removalMessage, deprecationMessage = removalMessage) {
const deprecation = new Deprecation(deprecationMessage);
core.error(`${removalMessage}. See ${deprecation.getDocumentationLink()}`);
const errorMessage = `${removalMessage}. See ${deprecation.getDocumentationLink()}`;
recordedErrors.push(errorMessage);
core.setFailed(errorMessage);
}
exports.failOnUseOfRemovedFeature = failOnUseOfRemovedFeature;
function getDeprecations() {
return recordedDeprecations;
}
exports.getDeprecations = getDeprecations;
function getErrors() {
return recordedErrors;
}
exports.getErrors = getErrors;
function emitDeprecationWarnings(hasJobSummary = true) {
if (recordedDeprecations.length > 0) {
core.warning(`This job uses deprecated functionality from the '${(0, configuration_1.getActionId)()}' action. Consult the ${hasJobSummary ? 'Job Summary' : 'logs'} for more details.`);
Expand All @@ -145282,17 +145289,21 @@ function emitDeprecationWarnings(hasJobSummary = true) {
}
exports.emitDeprecationWarnings = emitDeprecationWarnings;
function saveDeprecationState() {
core.saveState('deprecations', JSON.stringify(recordedDeprecations));
core.saveState('deprecation-collector_deprecations', JSON.stringify(recordedDeprecations));
core.saveState('deprecation-collector_errors', JSON.stringify(recordedErrors));
}
exports.saveDeprecationState = saveDeprecationState;
function restoreDeprecationState() {
const stringRep = core.getState('deprecations');
if (stringRep === '') {
return;
const savedDeprecations = core.getState('deprecation-collector_deprecations');
if (savedDeprecations) {
JSON.parse(savedDeprecations).forEach((obj) => {
recordedDeprecations.push(new Deprecation(obj.message));
});
}
const savedErrors = core.getState('deprecation-collector_errors');
if (savedErrors) {
recordedErrors.push(...JSON.parse(savedErrors));
}
JSON.parse(stringRep).forEach((obj) => {
recordedDeprecations.push(new Deprecation(obj.message));
});
}
exports.restoreDeprecationState = restoreDeprecationState;

Expand Down Expand Up @@ -145991,6 +146002,12 @@ const request_error_1 = __nccwpck_require__(10537);
const configuration_1 = __nccwpck_require__(15778);
const deprecation_collector_1 = __nccwpck_require__(22572);
async function generateJobSummary(buildResults, cachingReport, config) {
const errors = renderErrors();
if (errors) {
core.summary.addRaw(errors);
await core.summary.write();
return;
}
const summaryTable = renderSummaryTable(buildResults.results);
const hasFailure = buildResults.anyFailed();
if (config.shouldGenerateJobSummary(hasFailure)) {
Expand Down Expand Up @@ -146057,6 +146074,13 @@ function renderSummaryTable(results) {
return `${renderDeprecations()}\n${renderBuildResults(results)}`;
}
exports.renderSummaryTable = renderSummaryTable;
function renderErrors() {
const errors = (0, deprecation_collector_1.getErrors)();
if (errors.length === 0) {
return undefined;
}
return errors.map(error => `<b>:x: ${error}</b>`).join('\n');
}
function renderDeprecations() {
const deprecations = (0, deprecation_collector_1.getDeprecations)();
if (deprecations.length === 0) {
Expand Down
2 changes: 1 addition & 1 deletion dist/setup-gradle/main/index.js.map

Large diffs are not rendered by default.

42 changes: 33 additions & 9 deletions dist/setup-gradle/post/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -145231,11 +145231,12 @@ var __importStar = (this && this.__importStar) || function (mod) {
return result;
};
Object.defineProperty(exports, "__esModule", ({ value: true }));
exports.restoreDeprecationState = exports.saveDeprecationState = exports.emitDeprecationWarnings = exports.getDeprecations = exports.failOnUseOfRemovedFeature = exports.recordDeprecation = exports.Deprecation = void 0;
exports.restoreDeprecationState = exports.saveDeprecationState = exports.emitDeprecationWarnings = exports.getErrors = exports.getDeprecations = exports.failOnUseOfRemovedFeature = exports.recordDeprecation = exports.Deprecation = void 0;
const core = __importStar(__nccwpck_require__(42186));
const configuration_1 = __nccwpck_require__(15778);
const DEPRECATION_UPGRADE_PAGE = 'https://github.com/gradle/actions/blob/main/docs/deprecation-upgrade-guide.md';
const recordedDeprecations = [];
const recordedErrors = [];
class Deprecation {
constructor(message) {
this.message = message;
Expand All @@ -145257,13 +145258,19 @@ function recordDeprecation(message) {
exports.recordDeprecation = recordDeprecation;
function failOnUseOfRemovedFeature(removalMessage, deprecationMessage = removalMessage) {
const deprecation = new Deprecation(deprecationMessage);
core.error(`${removalMessage}. See ${deprecation.getDocumentationLink()}`);
const errorMessage = `${removalMessage}. See ${deprecation.getDocumentationLink()}`;
recordedErrors.push(errorMessage);
core.setFailed(errorMessage);
}
exports.failOnUseOfRemovedFeature = failOnUseOfRemovedFeature;
function getDeprecations() {
return recordedDeprecations;
}
exports.getDeprecations = getDeprecations;
function getErrors() {
return recordedErrors;
}
exports.getErrors = getErrors;
function emitDeprecationWarnings(hasJobSummary = true) {
if (recordedDeprecations.length > 0) {
core.warning(`This job uses deprecated functionality from the '${(0, configuration_1.getActionId)()}' action. Consult the ${hasJobSummary ? 'Job Summary' : 'logs'} for more details.`);
Expand All @@ -145274,17 +145281,21 @@ function emitDeprecationWarnings(hasJobSummary = true) {
}
exports.emitDeprecationWarnings = emitDeprecationWarnings;
function saveDeprecationState() {
core.saveState('deprecations', JSON.stringify(recordedDeprecations));
core.saveState('deprecation-collector_deprecations', JSON.stringify(recordedDeprecations));
core.saveState('deprecation-collector_errors', JSON.stringify(recordedErrors));
}
exports.saveDeprecationState = saveDeprecationState;
function restoreDeprecationState() {
const stringRep = core.getState('deprecations');
if (stringRep === '') {
return;
const savedDeprecations = core.getState('deprecation-collector_deprecations');
if (savedDeprecations) {
JSON.parse(savedDeprecations).forEach((obj) => {
recordedDeprecations.push(new Deprecation(obj.message));
});
}
const savedErrors = core.getState('deprecation-collector_errors');
if (savedErrors) {
recordedErrors.push(...JSON.parse(savedErrors));
}
JSON.parse(stringRep).forEach((obj) => {
recordedDeprecations.push(new Deprecation(obj.message));
});
}
exports.restoreDeprecationState = restoreDeprecationState;

Expand Down Expand Up @@ -145983,6 +145994,12 @@ const request_error_1 = __nccwpck_require__(10537);
const configuration_1 = __nccwpck_require__(15778);
const deprecation_collector_1 = __nccwpck_require__(22572);
async function generateJobSummary(buildResults, cachingReport, config) {
const errors = renderErrors();
if (errors) {
core.summary.addRaw(errors);
await core.summary.write();
return;
}
const summaryTable = renderSummaryTable(buildResults.results);
const hasFailure = buildResults.anyFailed();
if (config.shouldGenerateJobSummary(hasFailure)) {
Expand Down Expand Up @@ -146049,6 +146066,13 @@ function renderSummaryTable(results) {
return `${renderDeprecations()}\n${renderBuildResults(results)}`;
}
exports.renderSummaryTable = renderSummaryTable;
function renderErrors() {
const errors = (0, deprecation_collector_1.getErrors)();
if (errors.length === 0) {
return undefined;
}
return errors.map(error => `<b>:x: ${error}</b>`).join('\n');
}
function renderDeprecations() {
const deprecations = (0, deprecation_collector_1.getDeprecations)();
if (deprecations.length === 0) {
Expand Down
2 changes: 1 addition & 1 deletion dist/setup-gradle/post/index.js.map

Large diffs are not rendered by default.

Loading

0 comments on commit 6c9e547

Please sign in to comment.