@@ -14,8 +14,8 @@ async function main(){
1414 // Get inputs
1515 const token = core . getInput ( 'github-token' ) ;
1616
17- const useBootstrap = core . getInput ( 'use-bootstrap ' ) . toLowerCase ( ) === 'true' ;
18- console . log ( `use-boostrap : ${ useBootstrap } ` ) ;
17+ const useHaskell = core . getInput ( 'use-haskell ' ) . toLowerCase ( ) === 'true' ;
18+ console . log ( `use-haskell : ${ useHaskell } ` ) ;
1919
2020 fpmVersion = core . getInput ( 'fpm-version' ) ;
2121 console . log ( `fpm-version: ${ fpmVersion } ` ) ;
@@ -44,7 +44,7 @@ async function main(){
4444
4545 // Build download path
4646 const fetchPath = fpmRepo + '/releases/download/' + fpmVersion + '/' ;
47- const filename = getFPMFilename ( useBootstrap , fpmVersion , process . platform ) ;
47+ const filename = getFPMFilename ( useHaskell , fpmVersion , process . platform ) ;
4848
4949 console . log ( `This platform is ${ process . platform } ` ) ;
5050 console . log ( `Fetching fpm from ${ fetchPath } ${ filename } ` )
@@ -96,21 +96,21 @@ async function main(){
9696
9797// Construct the filename for an fpm release
9898//
99- // fpm-[bootstrap -]<version>-<os>-<arch>[.exe]
99+ // fpm-[haskell -]<version>-<os>-<arch>[.exe]
100100//
101- // <version> is a string of form vX .Y.Z corresponding to a release of fpm
102- // <os> is either 'linux', 'darwin ', or 'win32' (as returned by process.platform)
101+ // <version> is a string of form X .Y.Z corresponding to a release of fpm
102+ // <os> is either 'linux', 'macos ', or 'windows'
103103// <arch> here is always 'x86_64'
104104//
105- function getFPMFilename ( useBootstrap , fpmVersion , platform ) {
105+ function getFPMFilename ( useHaskell , fpmVersion , platform ) {
106106
107107 filename = 'fpm-' ;
108108
109- if ( useBootstrap ) {
110- filename += 'bootstrap -' ;
109+ if ( useHaskell ) {
110+ filename += 'haskell -' ;
111111 }
112112
113- filename += fpmVersion + '-' ;
113+ filename += fpmVersion . replace ( 'v' , '' ) + '-' ;
114114
115115 if ( platform === 'linux' ) {
116116
0 commit comments