mirror of
https://github.com/NotAKidoS/NAK_CVR_Mods.git
synced 2025-09-03 14:59:23 +00:00
35 lines
No EOL
973 B
YAML
35 lines
No EOL
973 B
YAML
name: Update Mod List
|
|
|
|
on:
|
|
push:
|
|
paths:
|
|
- '.github/scripts/update-modlist.js'
|
|
- '.github/workflows/update-modlist.yml'
|
|
- 'README.md'
|
|
- '**/README.md'
|
|
workflow_dispatch:
|
|
|
|
jobs:
|
|
update-modlist:
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
- name: Checkout repo
|
|
uses: actions/checkout@v4
|
|
|
|
- name: Set up Node.js
|
|
uses: actions/setup-node@v3
|
|
with:
|
|
node-version: '20'
|
|
|
|
- name: Run mod list updater
|
|
run: node .github/scripts/update-modlist.js
|
|
|
|
- name: Commit and push changes
|
|
run: |
|
|
git config user.name "github-actions[bot]"
|
|
git config user.email "github-actions[bot]@users.noreply.github.com"
|
|
git remote set-url origin https://x-access-token:${{ secrets.GH_TOKEN }}@github.com/${{ github.repository }}
|
|
git add README.md
|
|
git commit -m "[NAK_CVR_Mods] Update mod list in README" || echo "No changes to commit"
|
|
git push |