Skip to content

Commit d99ce2a

Browse files
authored
Add the sorted check, checking "difficulty-then-slug" (#3146)
1 parent 12c8b52 commit d99ce2a

2 files changed

Lines changed: 27 additions & 11 deletions

File tree

.github/workflows/sorted.yml

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
name: Exercise order
2+
3+
on:
4+
pull_request:
5+
branches:
6+
- main
7+
8+
permissions:
9+
contents: read
10+
11+
jobs:
12+
call-gha-workflow:
13+
name: Check
14+
uses: IsaacG/github-actions/.github/workflows/sorted.yml@main
15+
with:
16+
ordering: ".difficulty, .lowercase_name"

config.json

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -431,6 +431,17 @@
431431
}
432432
],
433433
"practice": [
434+
{
435+
"slug": "hello-world",
436+
"name": "Hello World",
437+
"uuid": "19957346-dedf-441e-85ea-656cac0d96d8",
438+
"practices": [],
439+
"prerequisites": [],
440+
"difficulty": 1,
441+
"topics": [
442+
"strings"
443+
]
444+
},
434445
{
435446
"slug": "accumulate",
436447
"name": "Accumulate",
@@ -458,17 +469,6 @@
458469
"difficulty": 1,
459470
"status": "deprecated"
460471
},
461-
{
462-
"slug": "hello-world",
463-
"name": "Hello World",
464-
"uuid": "19957346-dedf-441e-85ea-656cac0d96d8",
465-
"practices": [],
466-
"prerequisites": [],
467-
"difficulty": 1,
468-
"topics": [
469-
"strings"
470-
]
471-
},
472472
{
473473
"slug": "hexadecimal",
474474
"name": "Hexadecimal",

0 commit comments

Comments
 (0)