Skip to content

Commit a7b5755

Browse files
docs(ci): scaffolding
1 parent 8e958fe commit a7b5755

File tree

2 files changed

+29
-0
lines changed

2 files changed

+29
-0
lines changed

.github/workflows/README.md

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
# LeetCode Scaffolding Workflow
2+
3+
## Requirements
4+
5+
- Fully automate problem scaffolding
6+
- Ensure consistent folder structure per study-plan
7+
- Avoid manual errors and save time
8+
9+
---
10+
11+
## How It Works
12+
13+
The workflow triggers on push events modifying files with the path:
14+
15+
```bash
16+
scripts/*.json
17+
```
18+
19+
Workflow:
20+
- Detect all modified JSON files
21+
- Skip any files ending with `details.json`
22+
- Run the `scaffolding.py` script passing the JSON containing alla the leetcode problem names as input
23+
- Generate the folder `problems/<json-name>` containing Python files for each problem
24+
- Create or update the file `scripts/<json-name>-details.json` with leetcode problem details fetched via GraphQL
25+
- Add and commit the changes
26+
- Push automatically via GitHub Actions

README.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
11
# LeetCode
22

3+
This repository contains my solutions to LeetCode problems, organized study-plan.
4+
A [workflow](https://github.com/BertozziPietro/leetcode/) is used to automate the creation of new study-plan folders.
5+
36
![](https://leetcard.jacoblin.cool/PietroBertozzi?theme=dark&font=Source%20Code%20Pro)

0 commit comments

Comments
 (0)