Skip to content

Commit 27e8a4b

Browse files
Merge pull request #100 from Mathys-Gasnier/main
Sending the result of `check-snippet` CI in the concerned PR
2 parents e9ee067 + eba23a1 commit 27e8a4b

File tree

3 files changed

+19
-10
lines changed

3 files changed

+19
-10
lines changed

.github/workflows/check-snippets.yml

Lines changed: 13 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -9,15 +9,23 @@ jobs:
99
check-snippets:
1010
runs-on: ubuntu-latest
1111

12+
permissions:
13+
content: read
14+
pull-requests: write
15+
1216
steps:
1317
- name: Checkout repository
14-
uses: actions/checkout@v3
18+
uses: actions/checkout@v4
1519

1620
- name: Set up Node.js
17-
uses: actions/setup-node@v3
21+
uses: actions/setup-node@v4
1822
with:
19-
node-version: "16"
23+
node-version: 22
2024

2125
- name: Check if snippets are formated correctly
22-
run: |
23-
node utils/checkSnippetFormatting.js # Run the script located in the utils/ folder
26+
uses: int128/comment-action@v1
27+
with:
28+
run: node utils/checkSnippetFormatting.js # Run the script located in the utils/ folder
29+
post-on-failure: |
30+
## :x: Snipper Format Error
31+
${run.output}

.github/workflows/consolidate-snippets.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,12 +14,12 @@ jobs:
1414

1515
steps:
1616
- name: Checkout repository
17-
uses: actions/checkout@v3
17+
uses: actions/checkout@v4
1818

1919
- name: Set up Node.js
20-
uses: actions/setup-node@v3
20+
uses: actions/setup-node@v4
2121
with:
22-
node-version: "16"
22+
node-version: 22
2323

2424
- name: Install dependencies
2525
run: |

src/hooks/useLanguages.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,9 @@ import { LanguageType } from "@types";
33
import { useFetch } from "./useFetch";
44

55
export const useLanguages = () => {
6-
const { data, loading, error } =
7-
useFetch<LanguageType[]>("/consolidated/_index.json");
6+
const { data, loading, error } = useFetch<LanguageType[]>(
7+
"/consolidated/_index.json"
8+
);
89

910
return { fetchedLanguages: data || [], loading, error };
1011
};

0 commit comments

Comments
 (0)