chore(release): 1.0.1 [skip ci]

## [1.0.1](https://github.com/KengoTODA/actions-setup-docker-compose/compare/v1.0.0...v1.0.1) (2021-08-20)

### Bug Fixes

* **deps:** bump @actions/core from 1.4.0 to 1.5.0 ([fc4847a](fc4847a6b6))
This commit is contained in:
semantic-release-bot
2021-08-20 17:05:57 +00:00
parent fc4847a6b6
commit fd5dac6497
3 changed files with 58 additions and 26 deletions

80
dist/index.js vendored
View File

@@ -17,8 +17,8 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
};
Object.defineProperty(exports, "__esModule", ({ value: true }));
exports.install = exports.runCommand = void 0;
const exec_1 = __nccwpck_require__(514);
const tool_cache_1 = __nccwpck_require__(784);
const exec_1 = __nccwpck_require__(514);
function runCommand(command) {
return __awaiter(this, void 0, void 0, function* () {
let output = '';
@@ -249,7 +249,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
});
};
Object.defineProperty(exports, "__esModule", ({ value: true }));
exports.getState = exports.saveState = exports.group = exports.endGroup = exports.startGroup = exports.info = exports.warning = exports.error = exports.debug = exports.isDebug = exports.setFailed = exports.setCommandEcho = exports.setOutput = exports.getBooleanInput = exports.getMultilineInput = exports.getInput = exports.addPath = exports.setSecret = exports.exportVariable = exports.ExitCode = void 0;
exports.getState = exports.saveState = exports.group = exports.endGroup = exports.startGroup = exports.info = exports.notice = exports.warning = exports.error = exports.debug = exports.isDebug = exports.setFailed = exports.setCommandEcho = exports.setOutput = exports.getBooleanInput = exports.getMultilineInput = exports.getInput = exports.addPath = exports.setSecret = exports.exportVariable = exports.ExitCode = void 0;
const command_1 = __nccwpck_require__(351);
const file_command_1 = __nccwpck_require__(717);
const utils_1 = __nccwpck_require__(278);
@@ -427,19 +427,30 @@ exports.debug = debug;
/**
* Adds an error issue
* @param message error issue message. Errors will be converted to string via toString()
* @param properties optional properties to add to the annotation.
*/
function error(message) {
command_1.issue('error', message instanceof Error ? message.toString() : message);
function error(message, properties = {}) {
command_1.issueCommand('error', utils_1.toCommandProperties(properties), message instanceof Error ? message.toString() : message);
}
exports.error = error;
/**
* Adds an warning issue
* Adds a warning issue
* @param message warning issue message. Errors will be converted to string via toString()
* @param properties optional properties to add to the annotation.
*/
function warning(message) {
command_1.issue('warning', message instanceof Error ? message.toString() : message);
function warning(message, properties = {}) {
command_1.issueCommand('warning', utils_1.toCommandProperties(properties), message instanceof Error ? message.toString() : message);
}
exports.warning = warning;
/**
* Adds a notice issue
* @param message notice issue message. Errors will be converted to string via toString()
* @param properties optional properties to add to the annotation.
*/
function notice(message, properties = {}) {
command_1.issueCommand('notice', utils_1.toCommandProperties(properties), message instanceof Error ? message.toString() : message);
}
exports.notice = notice;
/**
* Writes info to log with console.log.
* @param message info message
@@ -573,7 +584,7 @@ exports.issueCommand = issueCommand;
// We use any as a valid input type
/* eslint-disable @typescript-eslint/no-explicit-any */
Object.defineProperty(exports, "__esModule", ({ value: true }));
exports.toCommandValue = void 0;
exports.toCommandProperties = exports.toCommandValue = void 0;
/**
* Sanitizes an input into a string so it can be passed into issueCommand safely
* @param input input to sanitize into a string
@@ -588,6 +599,25 @@ function toCommandValue(input) {
return JSON.stringify(input);
}
exports.toCommandValue = toCommandValue;
/**
*
* @param annotationProperties
* @returns The command properties to send with the actual annotation command
* See IssueCommandProperties: https://github.com/actions/runner/blob/main/src/Runner.Worker/ActionCommandManager.cs#L646
*/
function toCommandProperties(annotationProperties) {
if (!Object.keys(annotationProperties).length) {
return {};
}
return {
title: annotationProperties.title,
line: annotationProperties.startLine,
endLine: annotationProperties.endLine,
col: annotationProperties.startColumn,
endColumn: annotationProperties.endColumn
};
}
exports.toCommandProperties = toCommandProperties;
//# sourceMappingURL=utils.js.map
/***/ }),
@@ -5836,7 +5866,7 @@ module.exports = v4;
/***/ ((module) => {
"use strict";
module.exports = require("assert");;
module.exports = require("assert");
/***/ }),
@@ -5844,7 +5874,7 @@ module.exports = require("assert");;
/***/ ((module) => {
"use strict";
module.exports = require("child_process");;
module.exports = require("child_process");
/***/ }),
@@ -5852,7 +5882,7 @@ module.exports = require("child_process");;
/***/ ((module) => {
"use strict";
module.exports = require("crypto");;
module.exports = require("crypto");
/***/ }),
@@ -5860,7 +5890,7 @@ module.exports = require("crypto");;
/***/ ((module) => {
"use strict";
module.exports = require("events");;
module.exports = require("events");
/***/ }),
@@ -5868,7 +5898,7 @@ module.exports = require("events");;
/***/ ((module) => {
"use strict";
module.exports = require("fs");;
module.exports = require("fs");
/***/ }),
@@ -5876,7 +5906,7 @@ module.exports = require("fs");;
/***/ ((module) => {
"use strict";
module.exports = require("http");;
module.exports = require("http");
/***/ }),
@@ -5884,7 +5914,7 @@ module.exports = require("http");;
/***/ ((module) => {
"use strict";
module.exports = require("https");;
module.exports = require("https");
/***/ }),
@@ -5892,7 +5922,7 @@ module.exports = require("https");;
/***/ ((module) => {
"use strict";
module.exports = require("net");;
module.exports = require("net");
/***/ }),
@@ -5900,7 +5930,7 @@ module.exports = require("net");;
/***/ ((module) => {
"use strict";
module.exports = require("os");;
module.exports = require("os");
/***/ }),
@@ -5908,7 +5938,7 @@ module.exports = require("os");;
/***/ ((module) => {
"use strict";
module.exports = require("path");;
module.exports = require("path");
/***/ }),
@@ -5916,7 +5946,7 @@ module.exports = require("path");;
/***/ ((module) => {
"use strict";
module.exports = require("stream");;
module.exports = require("stream");
/***/ }),
@@ -5924,7 +5954,7 @@ module.exports = require("stream");;
/***/ ((module) => {
"use strict";
module.exports = require("string_decoder");;
module.exports = require("string_decoder");
/***/ }),
@@ -5932,7 +5962,7 @@ module.exports = require("string_decoder");;
/***/ ((module) => {
"use strict";
module.exports = require("timers");;
module.exports = require("timers");
/***/ }),
@@ -5940,7 +5970,7 @@ module.exports = require("timers");;
/***/ ((module) => {
"use strict";
module.exports = require("tls");;
module.exports = require("tls");
/***/ }),
@@ -5948,7 +5978,7 @@ module.exports = require("tls");;
/***/ ((module) => {
"use strict";
module.exports = require("util");;
module.exports = require("util");
/***/ })
@@ -5987,7 +6017,9 @@ module.exports = require("util");;
/************************************************************************/
/******/ /* webpack/runtime/compat */
/******/
/******/ if (typeof __nccwpck_require__ !== 'undefined') __nccwpck_require__.ab = __dirname + "/";/************************************************************************/
/******/ if (typeof __nccwpck_require__ !== 'undefined') __nccwpck_require__.ab = __dirname + "/";
/******/
/************************************************************************/
/******/
/******/ // startup
/******/ // Load entry module and return exports

2
dist/index.js.map vendored

File diff suppressed because one or more lines are too long