@@ -14,8 +14,8 @@ async function main(){
14
14
// Get inputs
15
15
const token = core . getInput ( 'github-token' ) ;
16
16
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 } ` ) ;
19
19
20
20
fpmVersion = core . getInput ( 'fpm-version' ) ;
21
21
console . log ( `fpm-version: ${ fpmVersion } ` ) ;
@@ -44,7 +44,7 @@ async function main(){
44
44
45
45
// Build download path
46
46
const fetchPath = fpmRepo + '/releases/download/' + fpmVersion + '/' ;
47
- const filename = getFPMFilename ( useBootstrap , fpmVersion , process . platform ) ;
47
+ const filename = getFPMFilename ( useHaskell , fpmVersion , process . platform ) ;
48
48
49
49
console . log ( `This platform is ${ process . platform } ` ) ;
50
50
console . log ( `Fetching fpm from ${ fetchPath } ${ filename } ` )
@@ -96,21 +96,21 @@ async function main(){
96
96
97
97
// Construct the filename for an fpm release
98
98
//
99
- // fpm-[bootstrap -]<version>-<os>-<arch>[.exe]
99
+ // fpm-[haskell -]<version>-<os>-<arch>[.exe]
100
100
//
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'
103
103
// <arch> here is always 'x86_64'
104
104
//
105
- function getFPMFilename ( useBootstrap , fpmVersion , platform ) {
105
+ function getFPMFilename ( useHaskell , fpmVersion , platform ) {
106
106
107
107
filename = 'fpm-' ;
108
108
109
- if ( useBootstrap ) {
110
- filename += 'bootstrap -' ;
109
+ if ( useHaskell ) {
110
+ filename += 'haskell -' ;
111
111
}
112
112
113
- filename += fpmVersion + '-' ;
113
+ filename += fpmVersion . replace ( 'v' , '' ) + '-' ;
114
114
115
115
if ( platform === 'linux' ) {
116
116
0 commit comments