Skip to content

Commit

Permalink
Removing getting file creation date, doesn't work with github actions
Browse files Browse the repository at this point in the history
  • Loading branch information
modos189 committed Jul 12, 2024
1 parent e7996fb commit 80a8135
Showing 1 changed file with 1 addition and 9 deletions.
10 changes: 1 addition & 9 deletions tools/helpers.js
Original file line number Diff line number Diff line change
Expand Up @@ -211,14 +211,7 @@ export const get_dist_plugins = async () => {
const plugins = [];
for (const [filepath, ,] of files) {
const metajs = fs.readFileSync(filepath, 'utf8');

let meta_stats;
const dist_stats = fs.statSync(filepath);
try {
meta_stats = fs.statSync(filepath.replace('../dist/', '../metadata/').replace('.meta.js', '.yml'));
} catch {
continue;
}

const meta = parseMeta(metajs);
for (const mergeKey of ['antiFeatures', 'depends', 'recommends']) {
Expand All @@ -229,8 +222,7 @@ export const get_dist_plugins = async () => {
meta.description = remove_brackets(meta.description || "");
meta.id_hash = meta.id.replace("@", "-by-");
community_plugins_ids.push(meta.id_hash);
meta.addedAt = meta_stats.birthtime.toISOString();
meta.updatedAt = dist_stats.birthtime.toISOString();
meta.updatedAt = dist_stats.mtime.toISOString();
plugins.push(meta);
}

Expand Down

0 comments on commit 80a8135

Please sign in to comment.