@@ -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} ;
772772Object . 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 ;
774774const command_1 = __nccwpck_require__ ( 338 ) ;
775775const file_command_1 = __nccwpck_require__ ( 550 ) ;
776776const 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}
955956exports . 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}
963965exports . 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 */
10961107Object . 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}
11111122exports . 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/***/ } ) ,
0 commit comments