Skip to content

Commit

Permalink
Merge pull request #95 from Mathys-Gasnier/main
Browse files Browse the repository at this point in the history
Updating workflows for new scripts
  • Loading branch information
Mathys-Gasnier authored Jan 1, 2025
2 parents 84f4571 + 5e61319 commit 711b560
Show file tree
Hide file tree
Showing 198 changed files with 745 additions and 3,368 deletions.
2 changes: 1 addition & 1 deletion .github/CODEOWNERS
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
/src/ @psychlone77 @saminjay

# Snippets maintainers
/public/data @Mathys-Gasnier
/snippets @Mathys-Gasnier


# ---------- What is a maintainer ----------
Expand Down
23 changes: 23 additions & 0 deletions .github/workflows/check-snippets.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
name: Checks snippets syntax

on:
pull_request:
paths:
- 'snippets/**'

jobs:
check-snippets:
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: Check if snippets are formated correctly
run: |
node utils/checkSnippetFormatting.js # Run the script located in the utils/ folder
8 changes: 4 additions & 4 deletions .github/workflows/consolidate-snippets.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name: Consolidate JSON Files
on:
push:
paths:
- "public/data/**"
- "snippets/**"

permissions:
contents: write
Expand All @@ -25,14 +25,14 @@ jobs:
run: |
npm install
- name: Consolidate JSON files
- name: Consolidate Snippets
run: |
node utils/consolidate.js # Run the script located in the utils/ folder
node utils/consolidateSnippets.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 "action@github.com"
git add public/consolidated/all_snippets.json
git add public/consolidated/*
git commit -m "Update consolidated snippets"
git push
File renamed without changes.
Loading

0 comments on commit 711b560

Please sign in to comment.