CI: fix an issue where the async function is not await'ed

This commit is contained in:
liushuyu 2022-10-14 23:56:03 -06:00
parent 6b96916d3c
commit 6b3a543abc
No known key found for this signature in database
GPG Key ID: 23D1CE4534419437

View File

@ -67,7 +67,7 @@ async function mergeChanges(branch, execa) {
"org.yuzu_emu.yuzu.json",
]);
if (p.stdout.length > 20) {
console.info("Skip version bump.");
console.info("Version was bumped by this script.");
return true;
}
return false;
@ -79,7 +79,7 @@ async function mergeChanges(branch, execa) {
await p;
// bump the version number
await incrementVersion();
if (hasChanges()) await amendCommit();
if (await hasChanges()) await amendCommit();
} catch (err) {
console.log(
`::error title=Merge failed::Failed to merge pull request: ${err}`