mirror of
https://github.com/barkeser2002/node-minecraft-protocol.git
synced 2026-09-25 12:16:10 +03:00
- 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.
41 lines
1.1 KiB
YAML
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 }}
|