mirror of
https://github.com/barkeser2002/node-minecraft-protocol.git
synced 2026-09-25 04:30:15 +03:00
* update workflow * update workflow * fix git config * update workflow * fix token * wrong wf * update workflow * update workflow * dispatch to mineflayer * fix --------- Co-authored-by: Romain Beaumont <romain.rom1@gmail.com>
37 lines
999 B
YAML
37 lines
999 B
YAML
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
|
|
|
|
jobs:
|
|
update:
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
- name: Checkout repository
|
|
uses: actions/checkout@v4
|
|
with:
|
|
token: ${{ secrets.PAT_PASSWORD }}
|
|
|
|
- name: Run updator script
|
|
run: cd .github/helper && npm install && node updator.js
|
|
env:
|
|
GITHUB_TOKEN: ${{ secrets.PAT_PASSWORD }}
|
|
MCDATA_BRANCH: ${{ github.event.inputs.mcdata_branch }}
|
|
MCDATA_PR_URL: ${{ github.event.inputs.mcdata_pr_url }}
|
|
NEW_MC_VERSION: ${{ github.event.inputs.new_mc_version }}
|