File tree Expand file tree Collapse file tree 3 files changed +19
-10
lines changed Expand file tree Collapse file tree 3 files changed +19
-10
lines changed Original file line number Diff line number Diff line change 9
9
check-snippets :
10
10
runs-on : ubuntu-latest
11
11
12
+ permissions :
13
+ content : read
14
+ pull-requests : write
15
+
12
16
steps :
13
17
- name : Checkout repository
14
- uses : actions/checkout@v3
18
+ uses : actions/checkout@v4
15
19
16
20
- name : Set up Node.js
17
- uses : actions/setup-node@v3
21
+ uses : actions/setup-node@v4
18
22
with :
19
- node-version : " 16 "
23
+ node-version : 22
20
24
21
25
- 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}
Original file line number Diff line number Diff line change @@ -14,12 +14,12 @@ jobs:
14
14
15
15
steps :
16
16
- name : Checkout repository
17
- uses : actions/checkout@v3
17
+ uses : actions/checkout@v4
18
18
19
19
- name : Set up Node.js
20
- uses : actions/setup-node@v3
20
+ uses : actions/setup-node@v4
21
21
with :
22
- node-version : " 16 "
22
+ node-version : 22
23
23
24
24
- name : Install dependencies
25
25
run : |
Original file line number Diff line number Diff line change @@ -3,8 +3,9 @@ import { LanguageType } from "@types";
3
3
import { useFetch } from "./useFetch" ;
4
4
5
5
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
+ ) ;
8
9
9
10
return { fetchedLanguages : data || [ ] , loading, error } ;
10
11
} ;
You can’t perform that action at this time.
0 commit comments