CI: fix a mistake with the variable naming in the script

This commit is contained in:
liushuyu 2022-10-12 18:01:06 -06:00
parent c7265552a7
commit 3f017fd94c
No known key found for this signature in database
GPG Key ID: 23D1CE4534419437

View File

@ -46,19 +46,19 @@ async function incrementVersion() {
async function mergeChanges(branch, execa) {
try {
const process = await execa("git", [
const p = await execa("git", [
"merge",
"--ff-only",
`origin/${branch}`,
]);
process.stdout.pipe(process.stdout);
p.stdout.pipe(process.stdout);
await incrementVersion();
await execa("git", [
"add",
"org.yuzu_emu.yuzu.json",
]);
const process1 = await execa("git", ["commit", "--amend"]);
process1.stdout.pipe(process1.stdout);
const p1 = await execa("git", ["commit", "--amend"]);
p1.stdout.pipe(process.stdout);
} catch (err) {
console.log(
`::error title=Merge failed::Failed to merge pull request: ${err}`,
@ -66,16 +66,16 @@ async function mergeChanges(branch, execa) {
return;
}
const process = await execa("git", [
const p = await execa("git", [
"push",
"origin",
`master:${branch}`,
"-f",
]);
process.stdout.pipe(process.stdout);
p.stdout.pipe(process.stdout);
await new Promise((r) => setTimeout(r, 2000));
const process1 = await execa("git", ["push", "origin"]);
process1.stdout.pipe(process1.stdout);
const p1 = await execa("git", ["push", "origin"]);
p1.stdout.pipe(process.stdout);
}
async function checkChanges(github, context) {