forked from PrismarineJS/mineflayer
-
Notifications
You must be signed in to change notification settings - Fork 2
54 lines (48 loc) · 1.62 KB
/
handle-update.yml
File metadata and controls
54 lines (48 loc) · 1.62 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
name: Update from minecraft-data
on:
workflow_dispatch:
inputs:
new_mc_version:
description: New minecraft version number
required: true
type: string
mcdata_branch:
description: minecraft-data branch for this version
required: true
type: string
mcdata_pr_url:
description: minecraft-data PR number to open a PR here against
required: false
default: ''
type: string
nmp_branch:
description: minecraft-protocol branch for this version
required: true
type: string
nmp_pr_url:
description: minecraft-protocol PR number to open a PR here against
required: false
default: ''
type: string
jobs:
update:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
with:
token: ${{ secrets.PAT_PASSWORD }}
- name: Use Node.js 22.x
uses: actions/setup-node@v1.4.4
with:
node-version: 22.x
- run: npm install PrismarineJS/node-minecraft-protocol#${{ github.event.inputs.nmp_branch }}
- name: Run updator script
run: cd .github/helper && npm install && node updator.js
env:
GITHUB_TOKEN: ${{ secrets.PAT_PASSWORD }}
NEW_MC_VERSION: ${{ github.event.inputs.new_mc_version }}
MCDATA_BRANCH: ${{ github.event.inputs.mcdata_branch }}
MCDATA_PR_URL: ${{ github.event.inputs.mcdata_pr_url }}
NMP_BRANCH: ${{ github.event.inputs.nmp_branch }}
NMP_PR_URL: ${{ github.event.inputs.nmp_pr_url }}