Skip to content

Commit

Permalink
fix: Simplify metadata
Browse files Browse the repository at this point in the history
  • Loading branch information
shdwmtr committed Dec 10, 2024
1 parent 9f5071e commit b46a5fa
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 7 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ jobs:
touch "$folder"metadata.json
# write current commit id to metadata.json
echo "{\"commit\": \"$(git rev-parse HEAD)\"}" > "$folder"metadata.json
echo "{\"commit\": \"$(git -C "$folder" rev-parse HEAD)\"}" > "$folder"metadata.json
echo "Zipping folder: $folder"
zip -r "$out.zip" "$folder" || echo "Failed to zip $folder"
Expand Down
9 changes: 3 additions & 6 deletions scripts/release.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,16 +23,13 @@ module.exports = {
generateNotes: async () => {
const pluginsDir = path.resolve(process.cwd(), 'plugins');
let pluginIds = [];
let releaseNotes = '';
let releaseNotes = '```json';

if (fs.existsSync(pluginsDir)) {
fs.readdirSync(pluginsDir).forEach(submodule => { pluginIds.push(ParsePlugin(pluginsDir, submodule)); });
}

for (let plugin of pluginIds) {
releaseNotes += `${btoa(plugin.plugin)}: ${plugin.commitId}\n`;
}

return releaseNotes;
releaseNotes += JSON.stringify(pluginIds, null, 4);
return releaseNotes + '```';
}
};

0 comments on commit b46a5fa

Please sign in to comment.