Skip to content

Commit

Permalink
dostuff
Browse files Browse the repository at this point in the history
  • Loading branch information
maxprilutskiy committed Oct 7, 2024
1 parent e076913 commit 7ac9814
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
5 changes: 4 additions & 1 deletion action/src/do-stuff.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,10 @@ export default async () => {
}

const currentTimestamp = new Date().toISOString();
data[currentTimestamp] = true;
data = {
[currentTimestamp]: true,
...data,
};

fs.writeFileSync(filePath, JSON.stringify(data, null, 2), 'utf-8');
}
1 change: 0 additions & 1 deletion action/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -45,4 +45,3 @@ import doStuff from './do-stuff.js';
});
}
})();

0 comments on commit 7ac9814

Please sign in to comment.