From 47a2b32355bb81bd79f493a6c95af66829230636 Mon Sep 17 00:00:00 2001 From: extremeheat Date: Sun, 17 Aug 2025 17:47:11 -0400 Subject: [PATCH] Update handle-mcdata-update.yml fix input handling --- .github/workflows/handle-mcdata-update.yml | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/.github/workflows/handle-mcdata-update.yml b/.github/workflows/handle-mcdata-update.yml index da927f5..2d9e4e5 100644 --- a/.github/workflows/handle-mcdata-update.yml +++ b/.github/workflows/handle-mcdata-update.yml @@ -1,7 +1,11 @@ name: handle-mcdata-update on: repository_dispatch: - types: [mc-update] + inputs: + version: + description: 'What new version is like `1.21.6`' + required: true + default: '1.21.6' jobs: update-mcdata: runs-on: ubuntu-latest @@ -10,6 +14,6 @@ jobs: with: submodules: true - run: npm install # install gh-helpers - - run: node .github/commands/bump.js ${{ github.event.client_payload.tag }} + - run: node .github/commands/bump.js ${{ github.event.inputs.version }} env: - GITHUB_TOKEN: ${{ secrets.PAT_PASSWORD }} \ No newline at end of file + GITHUB_TOKEN: ${{ secrets.PAT_PASSWORD }}