Skip to content

Merge pull request #54 from Axorax/Python #28

Merge pull request #54 from Axorax/Python

Merge pull request #54 from Axorax/Python #28

name: Consolidate JSON Files
on:
push:
paths:
- "public/data/**"
permissions:
contents: write
jobs:
consolidate:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v3
- name: Set up Node.js
uses: actions/setup-node@v3
with:
node-version: "16"
- name: Install dependencies
run: |
npm install
- name: Consolidate JSON files
run: |
node utils/consolidate.js # Run the script located in the utils/ folder
- name: Commit and push changes
run: |
git config --global user.name "GitHub Action"
git config --global user.email "[email protected]"
git add public/consolidated/all_snippets.json
git commit -m "Update consolidated snippets"
git push