Skip to content

Commit 711b560

Browse files
Merge pull request #95 from Mathys-Gasnier/main
Updating workflows for new scripts
2 parents 84f4571 + 5e61319 commit 711b560

File tree

198 files changed

+745
-3368
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

198 files changed

+745
-3368
lines changed

.github/CODEOWNERS

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
/src/ @psychlone77 @saminjay
88

99
# Snippets maintainers
10-
/public/data @Mathys-Gasnier
10+
/snippets @Mathys-Gasnier
1111

1212

1313
# ---------- What is a maintainer ----------

.github/workflows/check-snippets.yml

+23
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
name: Checks snippets syntax
2+
3+
on:
4+
pull_request:
5+
paths:
6+
- 'snippets/**'
7+
8+
jobs:
9+
check-snippets:
10+
runs-on: ubuntu-latest
11+
12+
steps:
13+
- name: Checkout repository
14+
uses: actions/checkout@v3
15+
16+
- name: Set up Node.js
17+
uses: actions/setup-node@v3
18+
with:
19+
node-version: "16"
20+
21+
- name: Check if snippets are formated correctly
22+
run: |
23+
node utils/checkSnippetFormatting.js # Run the script located in the utils/ folder

.github/workflows/consolidate-snippets.yml

+4-4
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ name: Consolidate JSON Files
33
on:
44
push:
55
paths:
6-
- "public/data/**"
6+
- "snippets/**"
77

88
permissions:
99
contents: write
@@ -25,14 +25,14 @@ jobs:
2525
run: |
2626
npm install
2727
28-
- name: Consolidate JSON files
28+
- name: Consolidate Snippets
2929
run: |
30-
node utils/consolidate.js # Run the script located in the utils/ folder
30+
node utils/consolidateSnippets.js # Run the script located in the utils/ folder
3131
3232
- name: Commit and push changes
3333
run: |
3434
git config --global user.name "GitHub Action"
3535
git config --global user.email "[email protected]"
36-
git add public/consolidated/all_snippets.json
36+
git add public/consolidated/*
3737
git commit -m "Update consolidated snippets"
3838
git push
File renamed without changes.

0 commit comments

Comments
 (0)