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 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}
Original file line number Diff line number Diff 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 : |
Original file line number Diff line number Diff line change @@ -3,8 +3,9 @@ import { LanguageType } from "@types";
33import { useFetch } from "./useFetch" ;
44
55export 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} ;
You can’t perform that action at this time.
0 commit comments