mirror of
https://github.com/flathub/org.yuzu_emu.yuzu.git
synced 2025-05-01 23:48:26 +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) {
|
async function mergeChanges(branch, execa) {
|
||||||
try {
|
try {
|
||||||
const process = await execa("git", [
|
const p = await execa("git", [
|
||||||
"merge",
|
"merge",
|
||||||
"--ff-only",
|
"--ff-only",
|
||||||
`origin/${branch}`,
|
`origin/${branch}`,
|
||||||
]);
|
]);
|
||||||
process.stdout.pipe(process.stdout);
|
p.stdout.pipe(process.stdout);
|
||||||
await incrementVersion();
|
await incrementVersion();
|
||||||
await execa("git", [
|
await execa("git", [
|
||||||
"add",
|
"add",
|
||||||
"org.yuzu_emu.yuzu.json",
|
"org.yuzu_emu.yuzu.json",
|
||||||
]);
|
]);
|
||||||
const process1 = await execa("git", ["commit", "--amend"]);
|
const p1 = await execa("git", ["commit", "--amend"]);
|
||||||
process1.stdout.pipe(process1.stdout);
|
p1.stdout.pipe(process.stdout);
|
||||||
} catch (err) {
|
} catch (err) {
|
||||||
console.log(
|
console.log(
|
||||||
`::error title=Merge failed::Failed to merge pull request: ${err}`,
|
`::error title=Merge failed::Failed to merge pull request: ${err}`,
|
||||||
@ -66,16 +66,16 @@ async function mergeChanges(branch, execa) {
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
const process = await execa("git", [
|
const p = await execa("git", [
|
||||||
"push",
|
"push",
|
||||||
"origin",
|
"origin",
|
||||||
`master:${branch}`,
|
`master:${branch}`,
|
||||||
"-f",
|
"-f",
|
||||||
]);
|
]);
|
||||||
process.stdout.pipe(process.stdout);
|
p.stdout.pipe(process.stdout);
|
||||||
await new Promise((r) => setTimeout(r, 2000));
|
await new Promise((r) => setTimeout(r, 2000));
|
||||||
const process1 = await execa("git", ["push", "origin"]);
|
const p1 = await execa("git", ["push", "origin"]);
|
||||||
process1.stdout.pipe(process1.stdout);
|
p1.stdout.pipe(process.stdout);
|
||||||
}
|
}
|
||||||
|
|
||||||
async function checkChanges(github, context) {
|
async function checkChanges(github, context) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user