@@ -13,16 +13,16 @@ __nccwpck_require__.r(__webpack_exports__);
13
13
14
14
const core = __nccwpck_require__ ( 186 )
15
15
16
- const { execSync, grpSt, grpEnd } = __nccwpck_require__ ( 390 )
16
+ const { execSync, grpSt, grpEnd, getInput } = __nccwpck_require__ ( 390 )
17
17
18
18
// group start time
19
19
let msSt
20
20
21
- // clean inputs
22
- let apt = core . getInput ( 'apt-get' ) . replace ( / [ ^ a - z _ \d . - ] + / gi, '' ) . trim ( ) . toLowerCase ( )
23
-
24
21
const run = async ( ) => {
25
22
try {
23
+ // clean input
24
+ let apt = getInput ( 'apt-get' )
25
+
26
26
if ( apt !== '' ) {
27
27
28
28
// fix for server timeout issues
@@ -94,11 +94,12 @@ const { execSync, grpSt, grpEnd } = __nccwpck_require__(390)
94
94
// group start time
95
95
let msSt
96
96
97
- // clean inputs
98
- let brew = core . getInput ( 'brew' ) . replace ( / [ ^ a - z _ \d . @ - ] + / gi, '' ) . trim ( ) . toLowerCase ( )
99
-
100
97
const run = async ( ) => {
101
98
try {
99
+ // clean input
100
+ // use different regex than getInput in common.js. Some packages contain @ character
101
+ let brew = core . getInput ( 'brew' ) . replace ( / [ ^ a - z _ \d . + @ - ] + / gi, '' ) . trim ( ) . toLowerCase ( )
102
+
102
103
if ( brew !== '' ) {
103
104
let needUpdate = true
104
105
@@ -250,7 +251,9 @@ const log = (logText, color = 'yel') => {
250
251
console . log ( `${ colors [ color ] } ${ logText } ${ rst } ` )
251
252
}
252
253
253
- const getInput = ( name ) => core . getInput ( name ) . replace ( / [ ^ a - z _ \d . - ] + / gi, '' ) . trim ( ) . toLowerCase ( )
254
+ // Used by apt, mingw, & mswin for input 'cleaning'. Brew also uses
255
+ // @ character in package names, so regex is in brew.js.
256
+ const getInput = ( name ) => core . getInput ( name ) . replace ( / [ ^ a - z _ \d . + - ] + / gi, '' ) . trim ( ) . toLowerCase ( )
254
257
255
258
// convert windows path like C:\Users\runneradmin to /c/Users/runneradmin
256
259
const win2nix = ( path ) => {
@@ -1097,6 +1100,13 @@ Object.defineProperty(exports, "summary", ({ enumerable: true, get: function ()
1097
1100
*/
1098
1101
var summary_2 = __nccwpck_require__ ( 327 ) ;
1099
1102
Object . defineProperty ( exports , "markdownSummary" , ( { enumerable : true , get : function ( ) { return summary_2 . markdownSummary ; } } ) ) ;
1103
+ /**
1104
+ * Path exports
1105
+ */
1106
+ var path_utils_1 = __nccwpck_require__ ( 981 ) ;
1107
+ Object . defineProperty ( exports , "toPosixPath" , ( { enumerable : true , get : function ( ) { return path_utils_1 . toPosixPath ; } } ) ) ;
1108
+ Object . defineProperty ( exports , "toWin32Path" , ( { enumerable : true , get : function ( ) { return path_utils_1 . toWin32Path ; } } ) ) ;
1109
+ Object . defineProperty ( exports , "toPlatformPath" , ( { enumerable : true , get : function ( ) { return path_utils_1 . toPlatformPath ; } } ) ) ;
1100
1110
//# sourceMappingURL=core.js.map
1101
1111
1102
1112
/***/ } ) ,
@@ -1234,6 +1244,71 @@ exports.OidcClient = OidcClient;
1234
1244
1235
1245
/***/ } ) ,
1236
1246
1247
+ /***/ 981 :
1248
+ /***/ ( function ( __unused_webpack_module , exports , __nccwpck_require__ ) {
1249
+
1250
+ "use strict" ;
1251
+
1252
+ var __createBinding = ( this && this . __createBinding ) || ( Object . create ? ( function ( o , m , k , k2 ) {
1253
+ if ( k2 === undefined ) k2 = k ;
1254
+ Object . defineProperty ( o , k2 , { enumerable : true , get : function ( ) { return m [ k ] ; } } ) ;
1255
+ } ) : ( function ( o , m , k , k2 ) {
1256
+ if ( k2 === undefined ) k2 = k ;
1257
+ o [ k2 ] = m [ k ] ;
1258
+ } ) ) ;
1259
+ var __setModuleDefault = ( this && this . __setModuleDefault ) || ( Object . create ? ( function ( o , v ) {
1260
+ Object . defineProperty ( o , "default" , { enumerable : true , value : v } ) ;
1261
+ } ) : function ( o , v ) {
1262
+ o [ "default" ] = v ;
1263
+ } ) ;
1264
+ var __importStar = ( this && this . __importStar ) || function ( mod ) {
1265
+ if ( mod && mod . __esModule ) return mod ;
1266
+ var result = { } ;
1267
+ if ( mod != null ) for ( var k in mod ) if ( k !== "default" && Object . hasOwnProperty . call ( mod , k ) ) __createBinding ( result , mod , k ) ;
1268
+ __setModuleDefault ( result , mod ) ;
1269
+ return result ;
1270
+ } ;
1271
+ Object . defineProperty ( exports , "__esModule" , ( { value : true } ) ) ;
1272
+ exports . toPlatformPath = exports . toWin32Path = exports . toPosixPath = void 0 ;
1273
+ const path = __importStar ( __nccwpck_require__ ( 17 ) ) ;
1274
+ /**
1275
+ * toPosixPath converts the given path to the posix form. On Windows, \\ will be
1276
+ * replaced with /.
1277
+ *
1278
+ * @param pth. Path to transform.
1279
+ * @return string Posix path.
1280
+ */
1281
+ function toPosixPath ( pth ) {
1282
+ return pth . replace ( / [ \\ ] / g, '/' ) ;
1283
+ }
1284
+ exports . toPosixPath = toPosixPath ;
1285
+ /**
1286
+ * toWin32Path converts the given path to the win32 form. On Linux, / will be
1287
+ * replaced with \\.
1288
+ *
1289
+ * @param pth. Path to transform.
1290
+ * @return string Win32 path.
1291
+ */
1292
+ function toWin32Path ( pth ) {
1293
+ return pth . replace ( / [ / ] / g, '\\' ) ;
1294
+ }
1295
+ exports . toWin32Path = toWin32Path ;
1296
+ /**
1297
+ * toPlatformPath converts the given path to a platform-specific path. It does
1298
+ * this by replacing instances of / and \ with the platform-specific path
1299
+ * separator.
1300
+ *
1301
+ * @param pth The path to platformize.
1302
+ * @return string The platform-specific path.
1303
+ */
1304
+ function toPlatformPath ( pth ) {
1305
+ return pth . replace ( / [ / \\ ] / g, path . sep ) ;
1306
+ }
1307
+ exports . toPlatformPath = toPlatformPath ;
1308
+ //# sourceMappingURL=path-utils.js.map
1309
+
1310
+ /***/ } ) ,
1311
+
1237
1312
/***/ 327 :
1238
1313
/***/ ( function ( __unused_webpack_module , exports , __nccwpck_require__ ) {
1239
1314
0 commit comments