mirror of
https://github.com/ditkrg/project-version-check.git
synced 2026-01-23 06:16:41 +00:00
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:
parent
fdd674f533
commit
d56581ce1a
4
index.js
4
index.js
@ -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)
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user