Update CHANGELOG.md #37
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: Update Modlist | |
on: | |
push: | |
branches: | |
- 'develop' | |
- 'modlist/**' | |
paths: | |
- MODLIST.md | |
- minecraftinstance.json | |
- automation/settings.ps1 | |
- .github/workflows/modlist.yml | |
- automation/node/modlist-generate.js | |
jobs: | |
job: | |
runs-on: ubuntu-latest | |
timeout-minutes: 20 | |
steps: | |
- uses: actions/checkout@v3 | |
with: | |
fetch-depth: 0 | |
- uses: actions/setup-node@v3 | |
- run: npm install | |
working-directory: automation/node | |
- run: node automation/node/modlist-generate.js | |
- name: Run git commit | |
run: | | |
git config user.name "$(git log -n 1 --pretty=format:%an minecraftinstance.json)" | |
git config user.email "$(git log -n 1 --pretty=format:%ae minecraftinstance.json)" | |
git diff --exit-code MODLIST.md || (git add MODLIST.md && git commit -m "Update MODLIST.md") | |
git push | |
env: | |
GIT_COMMITTER_NAME: github-actions[bot] | |
GIT_COMMITTER_EMAIL: 41898282+github-actions[bot]@users.noreply.github.com |