Files
darksidewalker-ComfyUI-DaSi…/.github/workflows/sync-issue-form.yml
T
Darksidewalker 760e51418e chore: auto-sync bug-report node dropdown from NODE_DISPLAY_NAME_MAPPINGS
Adds .github/scripts/sync_issue_form.py (AST-parses __init__.py, no
runtime deps) and a workflow that regenerates the dropdown and
auto-commits to main when __init__.py or the form changes.
2026-08-17 18:24:27 +02:00

44 lines
1.3 KiB
YAML

name: Sync issue form node list
# Regenerates the node dropdown in the bug-report issue form from
# NODE_DISPLAY_NAME_MAPPINGS in __init__.py, and auto-commits to main when the
# node list has changed. Triggered when the node registrations or the form
# itself change.
on:
push:
branches: [main]
paths:
- "__init__.py"
- ".github/ISSUE_TEMPLATE/bug-report.yml"
- ".github/scripts/sync_issue_form.py"
- ".github/workflows/sync-issue-form.yml"
permissions:
contents: write
jobs:
sync-node-dropdown:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: "3.12"
- name: Run sync script
id: sync
run: |
OUT="$(python .github/scripts/sync_issue_form.py)"
echo "$OUT"
echo "changed=${OUT##*changed=}" >> "$GITHUB_OUTPUT"
- name: Commit & push synced dropdown
if: steps.sync.outputs.changed == '1'
run: |
git config user.name "github-actions[bot]"
git config user.email "41898282+github-actions[bot]@users.noreply.github.com"
git add .github/ISSUE_TEMPLATE/bug-report.yml
git commit -m "chore: sync DaSiWa node list in bug-report issue form"
git push