Skip to content

Commit 204fa75

Browse files
authored
dispatch to mineflayer
1 parent 97537ad commit 204fa75

1 file changed

Lines changed: 17 additions & 0 deletions

File tree

.github/helper/updator.js

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,23 @@ Related: ${mcdataPrURL}
7676
'master'
7777
)
7878
console.log(`Pull request created`, pr)
79+
80+
// Ask mineflayer to handle new update
81+
const nodeDispatchPayload = {
82+
owner: 'PrismarineJS',
83+
repo: 'mineflayer',
84+
workflow: 'handle-update.yml',
85+
branch: 'master',
86+
inputs: {
87+
new_mc_version: latestVersion,
88+
mcdata_branch: triggerBranch,
89+
mcdata_pr_url: mcdataPrURL,
90+
nmp_branch: branchName,
91+
nmp_pr_url: pr.url
92+
}
93+
}
94+
console.log('Sending workflow dispatch', nodeDispatchPayload)
95+
await github.sendWorkflowDispatch(nodeDispatchPayload)
7996
}
8097

8198
main().catch(err => {

0 commit comments

Comments
 (0)