File tree Expand file tree Collapse file tree 2 files changed +4
-7
lines changed
Expand file tree Collapse file tree 2 files changed +4
-7
lines changed Original file line number Diff line number Diff line change 7676 touch "$folder"metadata.json
7777
7878 # write current commit id to metadata.json
79- echo "{\"commit\": \"$(git rev-parse HEAD)\"}" > "$folder"metadata.json
79+ echo "{\"commit\": \"$(git -C "$folder" rev-parse HEAD)\"}" > "$folder"metadata.json
8080
8181 echo "Zipping folder: $folder"
8282 zip -r "$out.zip" "$folder" || echo "Failed to zip $folder"
Original file line number Diff line number Diff line change @@ -23,16 +23,13 @@ module.exports = {
2323 generateNotes : async ( ) => {
2424 const pluginsDir = path . resolve ( process . cwd ( ) , 'plugins' ) ;
2525 let pluginIds = [ ] ;
26- let releaseNotes = '' ;
26+ let releaseNotes = '```json ' ;
2727
2828 if ( fs . existsSync ( pluginsDir ) ) {
2929 fs . readdirSync ( pluginsDir ) . forEach ( submodule => { pluginIds . push ( ParsePlugin ( pluginsDir , submodule ) ) ; } ) ;
3030 }
3131
32- for ( let plugin of pluginIds ) {
33- releaseNotes += `${ btoa ( plugin . plugin ) } : ${ plugin . commitId } \n` ;
34- }
35-
36- return releaseNotes ;
32+ releaseNotes += JSON . stringify ( pluginIds , null , 4 ) ;
33+ return releaseNotes + '```' ;
3734 }
3835} ;
You can’t perform that action at this time.
0 commit comments