Files
AzerothCore-RealmMaster/.github/workflows/update-module-manifest.yml
2025-12-27 18:07:40 -05:00

54 lines
1.5 KiB
YAML

name: Sync Module Manifest
on:
workflow_dispatch:
schedule:
- cron: '0 9 * * 1'
jobs:
sync:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: '3.11'
- name: Configure git
run: |
git config --global user.name 'github-actions[bot]'
git config --global user.email 'github-actions[bot]@users.noreply.github.com'
- name: Update manifest from GitHub topics
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
python3 scripts/python/update_module_manifest.py --log
- name: Check for changes
id: changes
run: |
if git diff --quiet; then
echo "changed=false" >> $GITHUB_OUTPUT
echo "No changes detected in manifest or template files"
else
echo "changed=true" >> $GITHUB_OUTPUT
echo "Changes detected:"
git diff --name-only
fi
- name: Create Pull Request with changes
if: steps.changes.outputs.changed == 'true'
uses: peter-evans/create-pull-request@v5
with:
commit-message: 'chore: sync module manifest'
branch: chore/update-module-manifest
title: 'chore: sync module manifest'
body: |
Automated manifest refresh via GitHub topic sync.
labels: modules
delete-branch: true