diff --git a/action/src/do-stuff.ts b/action/src/do-stuff.ts index 6f8b982..07e786d 100644 --- a/action/src/do-stuff.ts +++ b/action/src/do-stuff.ts @@ -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'); } \ No newline at end of file diff --git a/action/src/index.ts b/action/src/index.ts index 611ec33..e4a1465 100644 --- a/action/src/index.ts +++ b/action/src/index.ts @@ -45,4 +45,3 @@ import doStuff from './do-stuff.js'; }); } })(); -