-
-
Notifications
You must be signed in to change notification settings - Fork 270
92 lines (79 loc) · 3.04 KB
/
Copy pathbedrock-version-bump.yml
File metadata and controls
92 lines (79 loc) · 3.04 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
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
name: Bedrock Version Bump
on:
workflow_dispatch:
inputs:
minecraftVersion:
description: 'Bedrock Minecraft version (e.g., 1.21.124)'
required: true
type: string
protocolVersion:
description: 'Protocol version number (e.g., 860)'
required: true
type: string
createPr:
description: 'Create a pull request with the changes'
required: false
type: boolean
default: true
jobs:
bump-bedrock-version:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
with:
token: ${{ secrets.PAT_PASSWORD || secrets.GITHUB_TOKEN }}
- name: Set up Node.js
uses: actions/setup-node@v4
with:
node-version: 22
- name: Install dependencies
run: |
cd tools/js
npm install
- name: Run version bump script
run: |
cd tools/js
npm run version bedrock ${{ github.event.inputs.minecraftVersion }} ${{ github.event.inputs.protocolVersion }}
- name: Build protocol files
run: |
cd tools/js
npm run build
- name: Run tests
run: |
cd tools/js
npm test
- name: Create Pull Request
if: ${{ github.event.inputs.createPr == 'true' }}
uses: peter-evans/create-pull-request@v6
with:
token: ${{ secrets.PAT_PASSWORD || secrets.GITHUB_TOKEN }}
commit-message: |
Add bedrock ${{ github.event.inputs.minecraftVersion }} protocol data
Updates:
- Protocol version → ${{ github.event.inputs.protocolVersion }}
- Minecraft version → ${{ github.event.inputs.minecraftVersion }}
- Moved previous proto.yml to versioned folder
- Updated protocolVersions.json, versions.json, and dataPaths.json
- Regenerated protocol.json files
branch: bedrock-bump-${{ github.event.inputs.minecraftVersion }}
delete-branch: true
title: Add bedrock ${{ github.event.inputs.minecraftVersion }} data
body: |
## Bedrock Version Bump
This PR adds support for Minecraft Bedrock Edition version **${{ github.event.inputs.minecraftVersion }}** with protocol version **${{ github.event.inputs.protocolVersion }}**.
### Changes
- ✅ Protocol version bumped to ${{ github.event.inputs.protocolVersion }}
- ✅ Minecraft version updated to ${{ github.event.inputs.minecraftVersion }}
- ✅ Previous proto.yml files moved to versioned folder
- ✅ Updated protocolVersions.json and versions.json
- ✅ Regenerated all protocol.json files
- ✅ All tests passing
### How this was generated
This PR was automatically generated using the bedrock version bump workflow.
---
🤖 Generated by GitHub Actions workflow
labels: |
bedrock
version-bump
automated