@@ -13675,7 +13675,7 @@ const getToggleInput = (name) => core.getInput(name) !== '';
1367513675 stackNoGlobal : getToggleInput ( 'stack-no-global' ) ,
1367613676 stackSetupGhc : getToggleInput ( 'stack-setup-ghc' ) ,
1367713677 cabalUpdate : core . getBooleanInput ( 'cabal-update' ) ,
13678- ghcupReleaseChannels : core . getInput ( 'ghcup-release-channels' ) ,
13678+ ghcupReleaseChannels : core . getMultilineInput ( 'ghcup-release-channels' ) ,
1367913679 ghcupReleaseChannel : core . getInput ( 'ghcup-release-channel' ) ,
1368013680 disableMatcher : getToggleInput ( 'disable-matcher' )
1368113681} ) ;
@@ -13791,15 +13791,6 @@ function releaseRevision(version, tool, os) {
1379113791 return result ;
1379213792}
1379313793exports . 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- }
1380313794function getOpts ( { ghc, cabal, stack } , os , inputs ) {
1380413795 core . debug ( `Inputs are: ${ JSON . stringify ( inputs ) } ` ) ;
1380513796 const stackNoGlobal = inputs . stackNoGlobal ?? false ;
@@ -13809,9 +13800,9 @@ function getOpts({ ghc, cabal, stack }, os, inputs) {
1380913800 const matcherDisable = inputs . disableMatcher ?? false ;
1381013801 if ( inputs . ghcupReleaseChannel ) {
1381113802 core . warning ( 'ghcup-release-channel is deprecated in favor of ghcup-release-channels' ) ;
13812- inputs . ghcupReleaseChannels = inputs . ghcupReleaseChannel ;
13803+ inputs . ghcupReleaseChannels = [ inputs . ghcupReleaseChannel ] ;
1381313804 }
13814- const ghcupReleaseChannels = parseCSV ( inputs . ghcupReleaseChannels ?? '' ) . map ( v => {
13805+ const ghcupReleaseChannels = ( inputs . ghcupReleaseChannels ?? [ ] ) . map ( v => {
1381513806 try {
1381613807 return new URL ( v ) ;
1381713808 }
0 commit comments