@@ -14,16 +14,27 @@ const { promises: fs } = __webpack_require__(747);
1414const main = async ( ) => {
1515 const path = core . getInput ( 'path' ) ;
1616 const content = await fs . readFile ( path , 'utf8' ) ;
17-
17+
18+ const regex_team_name = / (?< = \* \* T e a m N a m e : \* \* ) .* / g;
1819 const regex_project = / (?< = \* \* P r o j e c t : \* \* ) .* / g;
19- const regex_proposer = / (?< = \* \* P r o p o s e r : \* \* ) .* / g;
20+ const regex_contact_name = / (?< = \* \* C o n t a c t N a m e : \* \* ) .* / g;
21+ const regex_contact_email = / (?< = \* \* C o n t a c t E m a i l : \* \* ) .* / g;
2022 const regex_total_cost = / (?< = \* \* T o t a l C o s t s : \* \* ) .* (? = B T C ) / g;
23+ const regex_registered_address = / (?< = \* \* R e g i s t e r e d A d d r e s s : \* \* ) .* / g;
2124
25+ const team_name = content . match ( regex_team_name ) [ 0 ] ;
2226 const project_name = content . match ( regex_project ) [ 0 ] ;
23- const proposer = content . match ( regex_proposer ) [ 0 ] ;
27+ const contact_name = content . match ( regex_contact_name ) [ 0 ] ;
28+ const contact_email = content . match ( regex_contact_email ) [ 0 ] ;
29+ const address = content . match ( regex_registered_address ) [ 0 ] ;
2430 const total_cost = content . match ( regex_total_cost ) [ 0 ] ;
25- core . setOutput ( 'project_name' , project_name ) ;
26- core . setOutput ( 'proposer' , proposer )
31+
32+
33+ core . setOutput ( 'team_name' , team_name ) ;
34+ core . setOutput ( 'project_name' , project_name )
35+ core . setOutput ( 'contact_name' , contact_name )
36+ core . setOutput ( 'contact_email' , contact_email )
37+ core . setOutput ( 'address' , address )
2738 core . setOutput ( 'total_cost' , total_cost )
2839}
2940
0 commit comments