mirror of
https://github.com/GreptimeTeam/greptimedb.git
synced 2026-11-28 13:44:03 +00:00
ci: log nightly merge decisions for dry-run verification
Signed-off-by: WenyXu <wenymedia@gmail.com>
This commit is contained in:
@@ -61,7 +61,7 @@ async function run({ sync = false, body = checked, labels = ['merge nightly'],
|
||||
const summary = { addHeading() { return this; }, addTable(rows) { calls.push(['summary', rows]); return this; }, async write() {} };
|
||||
await scripts[sync ? 0 : 1](github,
|
||||
{ repo: { owner: 'GreptimeTeam', repo: 'greptimedb' }, payload: { pull_request: { number: 1 } } },
|
||||
{ summary, warning() {}, setFailed: message => calls.push(['failed', message]) },
|
||||
{ summary, info() {}, warning() {}, setFailed: message => calls.push(['failed', message]) },
|
||||
{ env: { DRY_RUN: String(dryRun) } });
|
||||
return calls;
|
||||
}
|
||||
|
||||
@@ -136,5 +136,6 @@ jobs:
|
||||
core.setFailed('Some PRs could not be processed; see workflow logs.');
|
||||
}
|
||||
}
|
||||
for (const [number, result] of rows) core.info(`PR #${number}: ${result}`);
|
||||
await core.summary.addHeading(dryRun ? 'Nightly merge (dry run)' : 'Nightly merge')
|
||||
.addTable([['PR', 'Result'], ...rows]).write();
|
||||
|
||||
Reference in New Issue
Block a user