Commit 252cc2c 1 parent 22f50f6 commit 252cc2c Copy full SHA for 252cc2c
File tree 3 files changed +13
-2
lines changed
3 files changed +13
-2
lines changed Original file line number Diff line number Diff line change 39
39
- ` cache` - **Optional**. Boolean.
40
40
- Enables caching Scarb dependencies.
41
41
- Empty/not specified : ` true` .
42
+ - ` add-to-path` - **Optional**. Boolean.
43
+ - Adds scarb to PATH env.
44
+ - Empty/not specified : ` true` .
42
45
43
46
# # Outputs
44
47
Original file line number Diff line number Diff line change @@ -18,6 +18,10 @@ inputs:
18
18
description : Enable dependency caching
19
19
required : false
20
20
default : " true"
21
+ add-to-path :
22
+ description : Adds scarb to PATH env
23
+ required : false
24
+ default : " true"
21
25
outputs :
22
26
scarb-prefix :
23
27
description : The prefix of the installed Scarb
Original file line number Diff line number Diff line change @@ -16,6 +16,7 @@ export default async function main() {
16
16
const toolVersionsPathInput = core . getInput ( "tool-versions" ) ;
17
17
const scarbLockPathInput = core . getInput ( "scarb-lock" ) ;
18
18
const enableCache = core . getBooleanInput ( "cache" ) ;
19
+ const addToPath = core . getBooleanInput ( "add-to-path" ) ;
19
20
20
21
const { repo : scarbRepo , version : scarbVersion } = await determineVersion (
21
22
scarbVersionInput ,
@@ -38,12 +39,15 @@ export default async function main() {
38
39
download ,
39
40
"scarb" ,
40
41
scarbVersion ,
41
- triplet ,
42
+ triplet
42
43
) ;
43
44
}
44
45
45
46
core . setOutput ( "scarb-prefix" , scarbPrefix ) ;
46
- core . addPath ( path . join ( scarbPrefix , "bin" ) ) ;
47
+
48
+ if ( addToPath ) {
49
+ core . addPath ( path . join ( scarbPrefix , "bin" ) ) ;
50
+ }
47
51
} ,
48
52
) ;
49
53
You can’t perform that action at this time.
0 commit comments