mirror of
https://github.com/NotAKidoS/NAK_CVR_Mods.git
synced 2025-09-05 07:49:22 +00:00
[NAK_CVR_Mods] Experiment 2
This commit is contained in:
parent
3c81f71d15
commit
68d7c22b7c
1 changed files with 14 additions and 13 deletions
27
.github/workflows/update-modlist.yml
vendored
27
.github/workflows/update-modlist.yml
vendored
|
@ -1,34 +1,35 @@
|
||||||
name: Update Mod List in README
|
name: Update Mod List
|
||||||
|
|
||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
paths:
|
paths:
|
||||||
- '**/README.md'
|
- 'scripts/update_modlist.py'
|
||||||
- '.github/workflows/update-modlist.yml'
|
- '.github/workflows/update-modlist.yml'
|
||||||
|
- 'README.md'
|
||||||
|
- '**/README.md'
|
||||||
workflow_dispatch:
|
workflow_dispatch:
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
update-readme:
|
update-modlist:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v3
|
- name: Checkout repo
|
||||||
|
uses: actions/checkout@v4
|
||||||
|
|
||||||
- name: Set up Node.js
|
- name: Set up Python
|
||||||
uses: actions/setup-node@v3
|
uses: actions/setup-python@v5
|
||||||
with:
|
with:
|
||||||
node-version: '20'
|
python-version: '3.x'
|
||||||
|
|
||||||
- name: Install dependencies
|
- name: Run mod list updater
|
||||||
run: npm install gray-matter
|
run: python scripts/update_modlist.py
|
||||||
|
|
||||||
- name: Generate mod list
|
- name: Commit and push changes
|
||||||
run: node .github/scripts/update-modlist.js
|
|
||||||
|
|
||||||
- name: Commit changes
|
|
||||||
run: |
|
run: |
|
||||||
git config user.name "github-actions[bot]"
|
git config user.name "github-actions[bot]"
|
||||||
git config user.email "github-actions[bot]@users.noreply.github.com"
|
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 add README.md
|
||||||
git commit -m "[NAK_CVR_Mods] Update mod list in README" || echo "No changes to commit"
|
git commit -m "[NAK_CVR_Mods] Update mod list in README" || echo "No changes to commit"
|
||||||
git push
|
git push
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue