Files
node-minecraft-protocol/.github/workflows/update-from-minecraft-data.yml
Romain Beaumont a2ba6fc086 Fix workflow token permissions
- Replace PAT_PASSWORD with GITHUB_TOKEN to fix permission denied errors
- Add explicit permissions block for contents, pull-requests, and actions
- This should resolve the 'Permission denied to rom1504bot' error during automation

Fixes automation workflow that was failing on git push operations.
2025-09-07 11:22:02 +02:00

41 lines
1.1 KiB
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
permissions:
contents: write
pull-requests: write
actions: write
steps:
- name: Checkout repository
uses: actions/checkout@v4
with:
token: ${{ secrets.GITHUB_TOKEN }}
- name: Run updator script
run: cd .github/helper && npm install && node updator.js
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
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 }}