@@ -13675,7 +13675,7 @@ const getToggleInput = (name) => core.getInput(name) !== '';
13675
13675
stackNoGlobal : getToggleInput ( 'stack-no-global' ) ,
13676
13676
stackSetupGhc : getToggleInput ( 'stack-setup-ghc' ) ,
13677
13677
cabalUpdate : core . getBooleanInput ( 'cabal-update' ) ,
13678
- ghcupReleaseChannels : core . getInput ( 'ghcup-release-channels' ) ,
13678
+ ghcupReleaseChannels : core . getMultilineInput ( 'ghcup-release-channels' ) ,
13679
13679
ghcupReleaseChannel : core . getInput ( 'ghcup-release-channel' ) ,
13680
13680
disableMatcher : getToggleInput ( 'disable-matcher' )
13681
13681
} ) ;
@@ -13791,15 +13791,6 @@ function releaseRevision(version, tool, os) {
13791
13791
return result ;
13792
13792
}
13793
13793
exports . releaseRevision = releaseRevision ;
13794
- /**
13795
- * Parse a string as a comma-separated list.
13796
- */
13797
- function parseCSV ( val ) {
13798
- return val
13799
- . split ( ',' )
13800
- . map ( s => s . trim ( ) )
13801
- . filter ( s => s != '' ) ;
13802
- }
13803
13794
function getOpts ( { ghc, cabal, stack } , os , inputs ) {
13804
13795
core . debug ( `Inputs are: ${ JSON . stringify ( inputs ) } ` ) ;
13805
13796
const stackNoGlobal = inputs . stackNoGlobal ?? false ;
@@ -13809,9 +13800,9 @@ function getOpts({ ghc, cabal, stack }, os, inputs) {
13809
13800
const matcherDisable = inputs . disableMatcher ?? false ;
13810
13801
if ( inputs . ghcupReleaseChannel ) {
13811
13802
core . warning ( 'ghcup-release-channel is deprecated in favor of ghcup-release-channels' ) ;
13812
- inputs . ghcupReleaseChannels = inputs . ghcupReleaseChannel ;
13803
+ inputs . ghcupReleaseChannels = [ inputs . ghcupReleaseChannel ] ;
13813
13804
}
13814
- const ghcupReleaseChannels = parseCSV ( inputs . ghcupReleaseChannels ?? '' ) . map ( v => {
13805
+ const ghcupReleaseChannels = ( inputs . ghcupReleaseChannels ?? [ ] ) . map ( v => {
13815
13806
try {
13816
13807
return new URL ( v ) ;
13817
13808
}
0 commit comments