Files
strom/data/minecraft-data/.github/workflows/handle-mcpc-generator.yml
T
2025-12-15 22:46:34 +01:00

40 lines
1.3 KiB
YAML

name: handle-mcpc-proto_generator
on:
workflow_dispatch:
inputs:
versions:
description: 'JSON stringified list of known versions in proto_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-proto_generator PR #'
required: false
createPr:
description: 'Whether to create a new PR if none exists'
required: false
default: 'false'
jobs:
update-mcdata:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
submodules: true
- uses: oven-sh/setup-bun@v2
with:
bun-version: latest
- run: cd .github/helper-bot && bun install
- run: cd tools/js && bun install
- run: bun handleMcpcGeneratedArtifacts.js
working-directory: .github/helper-bot
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 }}
CREATE_PR_IF_NONE: ${{ github.event.inputs.createPr }}