@@ -13639,7 +13639,7 @@ const getToggleInput = (name) => core.getInput(name) !== '';
1363913639 stackNoGlobal : getToggleInput ( 'stack-no-global' ) ,
1364013640 stackSetupGhc : getToggleInput ( 'stack-setup-ghc' ) ,
1364113641 cabalUpdate : core . getBooleanInput ( 'cabal-update' ) ,
13642- ghcupReleaseChannels : core . getInput ( 'ghcup-release-channels' ) ,
13642+ ghcupReleaseChannels : core . getMultilineInput ( 'ghcup-release-channels' ) ,
1364313643 ghcupReleaseChannel : core . getInput ( 'ghcup-release-channel' ) ,
1364413644 disableMatcher : getToggleInput ( 'disable-matcher' )
1364513645} ) ;
@@ -13755,15 +13755,6 @@ function releaseRevision(version, tool, os) {
1375513755 return result ;
1375613756}
1375713757exports . releaseRevision = releaseRevision ;
13758- /**
13759- * Parse a string as a comma-separated list.
13760- */
13761- function parseCSV ( val ) {
13762- return val
13763- . split ( ',' )
13764- . map ( s => s . trim ( ) )
13765- . filter ( s => s != '' ) ;
13766- }
1376713758function getOpts ( { ghc, cabal, stack } , os , inputs ) {
1376813759 core . debug ( `Inputs are: ${ JSON . stringify ( inputs ) } ` ) ;
1376913760 const stackNoGlobal = inputs . stackNoGlobal ?? false ;
@@ -13773,9 +13764,9 @@ function getOpts({ ghc, cabal, stack }, os, inputs) {
1377313764 const matcherDisable = inputs . disableMatcher ?? false ;
1377413765 if ( inputs . ghcupReleaseChannel ) {
1377513766 core . warning ( 'ghcup-release-channel is deprecated in favor of ghcup-release-channels' ) ;
13776- inputs . ghcupReleaseChannels = inputs . ghcupReleaseChannel ;
13767+ inputs . ghcupReleaseChannels = [ inputs . ghcupReleaseChannel ] ;
1377713768 }
13778- const ghcupReleaseChannels = parseCSV ( inputs . ghcupReleaseChannels ?? '' ) . map ( v => {
13769+ const ghcupReleaseChannels = ( inputs . ghcupReleaseChannels ?? [ ] ) . map ( v => {
1377913770 try {
1378013771 return new URL ( v ) ;
1378113772 }
0 commit comments