Skip to content

Add art0007i author and multiple mods (#9) #15

Add art0007i author and multiple mods (#9)

Add art0007i author and multiple mods (#9) #15

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