mirror of
https://github.com/flathub/org.yuzu_emu.yuzu.git
synced 2024-12-16 14:37:03 +00:00
CI: fix a mistake with the variable naming in the script
This commit is contained in:
parent
c7265552a7
commit
3f017fd94c
16
.github/workflows/merge.js
vendored
16
.github/workflows/merge.js
vendored
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user