File tree Expand file tree Collapse file tree 2 files changed +21
-4
lines changed Expand file tree Collapse file tree 2 files changed +21
-4
lines changed Original file line number Diff line number Diff line change @@ -9,12 +9,17 @@ author: Supertokens
9
9
10
10
inputs :
11
11
has-cdi :
12
- description : Whether the repository contains a coreDriverInterface file
12
+ description : Whether the repository contains a coreDriverInterfaceSupported file
13
13
required : false
14
14
default : false
15
15
16
16
has-fdi :
17
- description : Whether the repository contains a frontendDriverInterface file
17
+ description : Whether the repository contains a frontendDriverInterfaceSupported file
18
+ required : false
19
+ default : false
20
+
21
+ has-web-js :
22
+ description : Whether the repository contains a webJsInterfaceSupported file
18
23
required : false
19
24
default : false
20
25
@@ -25,10 +30,13 @@ inputs:
25
30
26
31
outputs :
27
32
cdiVersions :
28
- description : List of CDI versions from the coreDriverInterface file
33
+ description : List of CDI versions from the coreDriverInterfaceSupported file
29
34
30
35
fdiVersions :
31
- description : List of FDI versions from the frontendDriverInterface file
36
+ description : List of FDI versions from the frontendDriverInterfaceSupported file
37
+
38
+ webJsVersion :
39
+ description : The web-js interface version from the webJsInterfaceSupported file
32
40
33
41
versions :
34
42
description : Stringified JSON of the versions file
Original file line number Diff line number Diff line change @@ -5,6 +5,7 @@ function getInputs() {
5
5
return {
6
6
hasCdi : core . getBooleanInput ( 'has-cdi' , { required : false } ) ,
7
7
hasFdi : core . getBooleanInput ( 'has-fdi' , { required : false } ) ,
8
+ hasWebJs : core . getBooleanInput ( 'has-web-js' , { required : false } ) ,
8
9
hasCommon : core . getBooleanInput ( 'has-common' , { required : false } )
9
10
}
10
11
}
@@ -34,6 +35,14 @@ export async function run() {
34
35
core . setOutput ( 'fdiVersions' , JSON . stringify ( fdiVersions ) )
35
36
}
36
37
38
+ if ( inputs . hasWebJs ) {
39
+ const webJsFile = await fs . readFile ( 'webJsInterfaceSupported.json' , 'utf-8' )
40
+ const webJsVersion : string = JSON . parse ( webJsFile ) . version
41
+
42
+ core . info ( `webJsVersion=${ webJsVersion } ` )
43
+ core . setOutput ( 'webJsVersion' , webJsVersion )
44
+ }
45
+
37
46
if ( inputs . hasCommon ) {
38
47
const commonFile = await fs . readFile ( 'supportedVersions.json' , 'utf-8' )
39
48
const versions = JSON . parse ( commonFile )
You can’t perform that action at this time.
0 commit comments