mirror of
https://github.com/flathub/org.yuzu_emu.yuzu.git
synced 2024-12-16 14:37:03 +00:00
CI: fix script context issues
This commit is contained in:
parent
3539eef81a
commit
54f56ebf50
2
.github/workflows/auto-merge.yml
vendored
2
.github/workflows/auto-merge.yml
vendored
@ -23,6 +23,6 @@ jobs:
|
||||
script: |
|
||||
const execa = require("execa");
|
||||
const mergebot = require('./.github/workflows/merge.js');
|
||||
const branch = await mergebot.checkChanges(github);
|
||||
const branch = await mergebot.checkChanges(github, context);
|
||||
if (branch)
|
||||
await mergeChanges(branch, execa);
|
||||
|
11
.github/workflows/merge.js
vendored
11
.github/workflows/merge.js
vendored
@ -56,7 +56,7 @@ async function mergeChanges(branch, execa) {
|
||||
await incrementVersion();
|
||||
await execa("git", [
|
||||
"add",
|
||||
"org.yuzu_emu.yuzu.json"
|
||||
"org.yuzu_emu.yuzu.json",
|
||||
]);
|
||||
const process1 = await execa("git", ["commit", "--amend"]);
|
||||
process1.stdout.pipe(process.stdout);
|
||||
@ -66,9 +66,14 @@ async function mergeChanges(branch, execa) {
|
||||
);
|
||||
}
|
||||
|
||||
const process = await execa("git", ["push", "origin", `master:${branch}`, "-f"]);
|
||||
const process = await execa("git", [
|
||||
"push",
|
||||
"origin",
|
||||
`master:${branch}`,
|
||||
"-f",
|
||||
]);
|
||||
process.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"]);
|
||||
process1.stdout.pipe(process1.stdout);
|
||||
}
|
||||
|
@ -1 +1 @@
|
||||
Subproject commit 1bb53934f105743f84f923693847185dce613cef
|
||||
Subproject commit a9112b9c62e2b84db4c2f6c55c9531fd7e8d03c1
|
Loading…
Reference in New Issue
Block a user