Skip to content

Commit b905336

Browse files
committed
@actions/core to 1.5, release 1.29.2
1 parent 5f02b04 commit b905336

File tree

4 files changed

+46
-16
lines changed

4 files changed

+46
-16
lines changed

dist/index.js

Lines changed: 38 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -387,7 +387,7 @@ const updateGCC = async () => {
387387
// TODO: code for installing gcc 9.2.0-1 or 9.1.0-3
388388

389389
msSt = grpSt(`Upgrading gcc for Ruby ${ruby.vers}`)
390-
let gccPkgs = ['', 'binutils', 'crt', 'dlfcn', 'headers', 'libiconv', 'isl', 'make', 'mpc', 'mpfr', 'windows-default-manifest', 'libwinpthread', 'libyaml', 'winpthreads', 'zlib', 'gcc-libs', 'gcc']
390+
let gccPkgs = ['', 'binutils', 'crt', 'dlfcn', 'headers', 'libiconv', 'isl', 'make', 'mpc', 'mpfr', 'pkgconf', 'windows-default-manifest', 'libwinpthread', 'libyaml', 'winpthreads', 'zlib', 'gcc-libs', 'gcc']
391391
execSync(`pacman.exe ${msys2Sync} --nodeps ${args} ${gccPkgs.join(pre)}`)
392392
grpEnd(msSt)
393393

@@ -770,7 +770,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
770770
});
771771
};
772772
Object.defineProperty(exports, "__esModule", ({ value: true }));
773-
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;
773+
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;
774774
const command_1 = __nccwpck_require__(338);
775775
const file_command_1 = __nccwpck_require__(550);
776776
const utils_1 = __nccwpck_require__(412);
@@ -948,19 +948,30 @@ exports.debug = debug;
948948
/**
949949
* Adds an error issue
950950
* @param message error issue message. Errors will be converted to string via toString()
951+
* @param properties optional properties to add to the annotation.
951952
*/
952-
function error(message) {
953-
command_1.issue('error', message instanceof Error ? message.toString() : message);
953+
function error(message, properties = {}) {
954+
command_1.issueCommand('error', utils_1.toCommandProperties(properties), message instanceof Error ? message.toString() : message);
954955
}
955956
exports.error = error;
956957
/**
957-
* Adds an warning issue
958+
* Adds a warning issue
958959
* @param message warning issue message. Errors will be converted to string via toString()
960+
* @param properties optional properties to add to the annotation.
959961
*/
960-
function warning(message) {
961-
command_1.issue('warning', message instanceof Error ? message.toString() : message);
962+
function warning(message, properties = {}) {
963+
command_1.issueCommand('warning', utils_1.toCommandProperties(properties), message instanceof Error ? message.toString() : message);
962964
}
963965
exports.warning = warning;
966+
/**
967+
* Adds a notice issue
968+
* @param message notice issue message. Errors will be converted to string via toString()
969+
* @param properties optional properties to add to the annotation.
970+
*/
971+
function notice(message, properties = {}) {
972+
command_1.issueCommand('notice', utils_1.toCommandProperties(properties), message instanceof Error ? message.toString() : message);
973+
}
974+
exports.notice = notice;
964975
/**
965976
* Writes info to log with console.log.
966977
* @param message info message
@@ -1094,7 +1105,7 @@ exports.issueCommand = issueCommand;
10941105
// We use any as a valid input type
10951106
/* eslint-disable @typescript-eslint/no-explicit-any */
10961107
Object.defineProperty(exports, "__esModule", ({ value: true }));
1097-
exports.toCommandValue = void 0;
1108+
exports.toCommandProperties = exports.toCommandValue = void 0;
10981109
/**
10991110
* Sanitizes an input into a string so it can be passed into issueCommand safely
11001111
* @param input input to sanitize into a string
@@ -1109,6 +1120,25 @@ function toCommandValue(input) {
11091120
return JSON.stringify(input);
11101121
}
11111122
exports.toCommandValue = toCommandValue;
1123+
/**
1124+
*
1125+
* @param annotationProperties
1126+
* @returns The command properties to send with the actual annotation command
1127+
* See IssueCommandProperties: https://github.com/actions/runner/blob/main/src/Runner.Worker/ActionCommandManager.cs#L646
1128+
*/
1129+
function toCommandProperties(annotationProperties) {
1130+
if (!Object.keys(annotationProperties).length) {
1131+
return {};
1132+
}
1133+
return {
1134+
title: annotationProperties.title,
1135+
line: annotationProperties.startLine,
1136+
endLine: annotationProperties.endLine,
1137+
col: annotationProperties.startColumn,
1138+
endColumn: annotationProperties.endColumn
1139+
};
1140+
}
1141+
exports.toCommandProperties = toCommandProperties;
11121142
//# sourceMappingURL=utils.js.map
11131143

11141144
/***/ }),

dist/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "setup-ruby-pkgs",
3-
"version": "1.29.1",
3+
"version": "1.29.2",
44
"description": "Install packages and update builds tools for Ruby",
55
"main": "index.js",
66
"scripts": {
@@ -23,7 +23,7 @@
2323
"author": "MSP-Greg",
2424
"license": "MIT",
2525
"dependencies": {
26-
"@actions/core": "^1.4.0",
26+
"@actions/core": "^1.5.0",
2727
"@actions/http-client": "^1.0.11"
2828
}
2929
}

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "setup-ruby-pkgs",
3-
"version": "1.29.1",
3+
"version": "1.29.2",
44
"description": "Install packages and update builds tools for Ruby",
55
"main": "index.js",
66
"scripts": {
@@ -23,7 +23,7 @@
2323
"author": "MSP-Greg",
2424
"license": "MIT",
2525
"dependencies": {
26-
"@actions/core": "^1.4.0",
26+
"@actions/core": "^1.5.0",
2727
"@actions/http-client": "^1.0.11"
2828
}
2929
}

yarn.lock

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,10 @@
22
# yarn lockfile v1
33

44

5-
"@actions/core@^1.4.0":
6-
version "1.4.0"
7-
resolved "https://registry.yarnpkg.com/@actions/core/-/core-1.4.0.tgz#cf2e6ee317e314b03886adfeb20e448d50d6e524"
8-
integrity sha512-CGx2ilGq5i7zSLgiiGUtBCxhRRxibJYU6Fim0Q1Wg2aQL2LTnF27zbqZOrxfvFQ55eSBW0L8uVStgtKMpa0Qlg==
5+
"@actions/core@^1.5.0":
6+
version "1.5.0"
7+
resolved "https://registry.yarnpkg.com/@actions/core/-/core-1.5.0.tgz#885b864700001a1b9a6fba247833a036e75ad9d3"
8+
integrity sha512-eDOLH1Nq9zh+PJlYLqEMkS/jLQxhksPNmUGNBHfa4G+tQmnIhzpctxmchETtVGyBOvXgOVVpYuE40+eS4cUnwQ==
99

1010
"@actions/http-client@^1.0.11":
1111
version "1.0.11"

0 commit comments

Comments
 (0)