Skip to content

Commit e1a581c

Browse files
authored
fix
1 parent 204fa75 commit e1a581c

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

.github/helper/updator.js

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -47,8 +47,7 @@ async function main () {
4747
const currentContentsCI = fs.readFileSync(ciPath, 'utf8')
4848
if (!currentContentsCI.includes(newVersion)) {
4949
const newCIContents = currentContentsCI.replace(
50-
' run: npm install', `
51-
run: npm install
50+
'run: npm install', `run: npm install
5251
- run: cd node_modules && cd minecraft-data && mv minecraft-data minecraft-data-old && git clone -b ${triggerBranch} https://github.com/PrismarineJS/minecraft-data --depth 1 && node bin/generate_data.js
5352
- run: curl -o node_modules/protodef/src/serializer.js https://raw.githubusercontent.com/extremeheat/node-protodef/refs/heads/dlog/src/serializer.js && curl -o node_modules/protodef/src/compiler.js https://raw.githubusercontent.com/extremeheat/node-protodef/refs/heads/dlog/src/compiler.js
5453
`)
@@ -68,7 +67,7 @@ async function main () {
6867
`🎈 ${newVersion}`,
6968
`This automated PR sets up the relevant boilerplate for Minecraft version ${newVersion}.
7069
71-
Related: ${mcdataPrURL}
70+
Ref: ${mcdataPrURL}
7271
7372
* You can help contribute to this PR by opening a PR against this <code branch>${branchName}</code> branch instead of <code>master</code>.
7473
`,
@@ -84,7 +83,7 @@ Related: ${mcdataPrURL}
8483
workflow: 'handle-update.yml',
8584
branch: 'master',
8685
inputs: {
87-
new_mc_version: latestVersion,
86+
new_mc_version: newVersion,
8887
mcdata_branch: triggerBranch,
8988
mcdata_pr_url: mcdataPrURL,
9089
nmp_branch: branchName,

0 commit comments

Comments
 (0)