Skip to content

Commit b46a5fa

Browse files
committed
fix: Simplify metadata
1 parent 9f5071e commit b46a5fa

File tree

2 files changed

+4
-7
lines changed

2 files changed

+4
-7
lines changed

.github/workflows/ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ jobs:
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"

scripts/release.js

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff 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
};

0 commit comments

Comments
 (0)