mirror of
https://github.com/OrcaSlicer/OrcaSlicer.git
synced 2026-09-27 02:41:17 +00:00
fix: update pr-merge-bot.yml to run post_merge_profiles.yml after merge
This commit is contained in:
@@ -520,6 +520,28 @@ jobs:
|
|||||||
} catch (error) {
|
} catch (error) {
|
||||||
core.warning(`Merged successfully, but dispatching build_all.yml failed: ${error.message}`);
|
core.warning(`Merged successfully, but dispatching build_all.yml failed: ${error.message}`);
|
||||||
}
|
}
|
||||||
|
// ---- re-kick the profile publish ----
|
||||||
|
// Same reason as above: post_merge_profiles.yml is push-triggered, so a
|
||||||
|
// GITHUB_TOKEN merge never starts it. workflow_dispatch skips the paths:
|
||||||
|
// filter, so only dispatch when the PR actually touched profiles.
|
||||||
|
const touchesProfiles = files.some((file) =>
|
||||||
|
[file.filename, file.previous_filename]
|
||||||
|
.filter(Boolean)
|
||||||
|
.some((p) => p.startsWith('resources/profiles/'))
|
||||||
|
);
|
||||||
|
if (touchesProfiles) {
|
||||||
|
try {
|
||||||
|
await github.rest.actions.createWorkflowDispatch({
|
||||||
|
owner,
|
||||||
|
repo,
|
||||||
|
workflow_id: 'post_merge_profiles.yml',
|
||||||
|
ref: pr.base.ref
|
||||||
|
});
|
||||||
|
core.info(`Dispatched post_merge_profiles.yml on ${pr.base.ref}.`);
|
||||||
|
} catch (error) {
|
||||||
|
core.warning(`Merged successfully, but dispatching post_merge_profiles.yml failed: ${error.message}`);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
label-profile:
|
label-profile:
|
||||||
# Independent of the merge rules: any PR that changes only files inside
|
# Independent of the merge rules: any PR that changes only files inside
|
||||||
|
|||||||
Reference in New Issue
Block a user