mirror of
https://github.com/barkeser2002/minecraft-data.git
synced 2026-11-24 10:26:22 +03:00
* Add 25w35a to pc protocolVersions.json * Add versions 1.21.7, and 1.21.8 to pc versions.json * add data * [Auto] Apply generated data from PrismarineJS/minecraft-data-generator# * Delete data/pc/1.21.7 directory * autorun extractPcEntityMetadata in handle-mcpc-generator.yml * fix * lint * [Auto] Apply generated data from PrismarineJS/minecraft-data-generator# * [Auto] Apply generated data from PrismarineJS/minecraft-data-generator# * Workflow fixes * lint * Update versions.json --------- Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
37 lines
1.2 KiB
YAML
37 lines
1.2 KiB
YAML
name: handle-mcpc-generator
|
|
on:
|
|
workflow_dispatch:
|
|
inputs:
|
|
versions:
|
|
description: 'JSON stringified list of known versions in generator (last is expected to be latest)'
|
|
required: true
|
|
default: '["1.21.6"]'
|
|
mergedArtifactURL:
|
|
description: 'Merged artifact download URL'
|
|
required: true
|
|
prNumber:
|
|
description: 'Relevant minecraft-data-generator PR #'
|
|
required: false
|
|
|
|
jobs:
|
|
update-mcdata:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
with:
|
|
submodules: true
|
|
- name: Use Node.js 22.x
|
|
uses: actions/setup-node@v1
|
|
with:
|
|
node-version: 22.x
|
|
- name: Expose GitHub Runtime
|
|
uses: crazy-max/ghaction-github-runtime@v3
|
|
- run: cd .github/helper-bot && npm install
|
|
- run: cd tools/js && npm install
|
|
- run: cd .github/helper-bot && node handleMcpcGeneratedArtifacts.js
|
|
env:
|
|
TRIGGER_MC_VERSIONS: ${{ github.event.inputs.versions }}
|
|
TRIGGER_PR_NO: ${{ github.event.inputs.prNumber }}
|
|
TRIGGER_ARTIFACT_URL: ${{ github.event.inputs.mergedArtifactURL }}
|
|
GITHUB_TOKEN: ${{ secrets.PAT_PASSWORD }}
|