Add FixMigratedItemMessages 1.0.0 (#145) #138
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |