Skip to content

Add author Sinduy and QuestPro4Resonite mod (#44) #44

Add author Sinduy and QuestPro4Resonite mod (#44)

Add author Sinduy and QuestPro4Resonite mod (#44) #44

name: Generate Manifest
on:
workflow_dispatch:
push:
paths:
- 'manifest/**'
branches:
- main
jobs:
build:
if: github.repository == 'resonite-modding-group/resonite-mod-manifest'
runs-on: ubuntu-latest
steps:
- name: Checkout main
uses: actions/checkout@v4
with:
token: ${{ secrets.GH_ACTION }}
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: "3.12"
- name: Run generate_manifest.py
run: python generate_manifest.py
- name: Check for changes and push
run: |
if [[ $(git status --porcelain) ]]; then
git config user.name "GitHub Actions"
git config user.email "<>"
git add manifest.json
git commit -m "Update manifest.json"
git push
else
echo "No changes to commit"
fi
shell: bash