@@ -13667,14 +13667,21 @@ Object.defineProperty(exports, "__esModule", ({ value: true }));
13667
13667
const core = __importStar ( __nccwpck_require__ ( 2186 ) ) ;
13668
13668
const setup_haskell_1 = __importDefault ( __nccwpck_require__ ( 9351 ) ) ;
13669
13669
const getToggleInput = ( name ) => core . getInput ( name ) !== '' ;
13670
+ const getBooleanInput = ( name ) => {
13671
+ // https://github.com/actions/toolkit/issues/844
13672
+ if ( ! process . env [ `INPUT_${ name . replace ( / / g, '_' ) . toUpperCase ( ) } ` ] ) {
13673
+ return undefined ;
13674
+ }
13675
+ return core . getBooleanInput ( name ) ;
13676
+ } ;
13670
13677
( 0 , setup_haskell_1 . default ) ( {
13671
13678
ghcVersion : core . getInput ( 'ghc-version' ) ,
13672
13679
cabalVersion : core . getInput ( 'cabal-version' ) ,
13673
13680
stackVersion : core . getInput ( 'stack-version' ) ,
13674
13681
enableStack : getToggleInput ( 'enable-stack' ) ,
13675
13682
stackNoGlobal : getToggleInput ( 'stack-no-global' ) ,
13676
13683
stackSetupGhc : getToggleInput ( 'stack-setup-ghc' ) ,
13677
- cabalUpdate : core . getBooleanInput ( 'cabal-update' ) ,
13684
+ cabalUpdate : getBooleanInput ( 'cabal-update' ) ,
13678
13685
ghcupReleaseChannels : core . getMultilineInput ( 'ghcup-release-channels' ) ,
13679
13686
ghcupReleaseChannel : core . getInput ( 'ghcup-release-channel' ) ,
13680
13687
disableMatcher : getToggleInput ( 'disable-matcher' )
0 commit comments