Fix Error: The "path" argument must be of type string or an instance of Buffer or URL. Received an instance of Object

Signed-off-by: Shakar <5h4k4r.b4kr@gmail.com>
This commit is contained in:
Shakar 2023-09-19 11:13:05 +03:00
parent fdd674f533
commit d56581ce1a
No known key found for this signature in database
GPG Key ID: DA55A26823AE3C28

View File

@ -48,9 +48,9 @@ async function run() {
console.log(`Old version: ${version}. New version: ${newVersion}`)
fs.writeFileSync(file, JSON.stringify(filePath, null, 2));
fs.writeFileSync(file, JSON.stringify(file, null, 2));
await commitChanges(core.getInput('filePath'), file);
await commitChanges(core.getInput('filePath'), JSON.stringify(file, null, 2));
const payload = JSON.stringify(github.context.payload, undefined, 2)