diff --git a/.github/workflows/check-snippets.yml b/.github/workflows/check-snippets.yml index 5fb67bd7..25e15f6d 100644 --- a/.github/workflows/check-snippets.yml +++ b/.github/workflows/check-snippets.yml @@ -9,15 +9,23 @@ jobs: check-snippets: runs-on: ubuntu-latest + permissions: + content: read + pull-requests: write + steps: - name: Checkout repository - uses: actions/checkout@v3 + uses: actions/checkout@v4 - name: Set up Node.js - uses: actions/setup-node@v3 + uses: actions/setup-node@v4 with: - node-version: "16" + node-version: 22 - name: Check if snippets are formated correctly - run: | - node utils/checkSnippetFormatting.js # Run the script located in the utils/ folder + uses: int128/comment-action@v1 + with: + run: node utils/checkSnippetFormatting.js # Run the script located in the utils/ folder + post-on-failure: | + ## :x: Snipper Format Error + ${run.output} \ No newline at end of file diff --git a/.github/workflows/consolidate-snippets.yml b/.github/workflows/consolidate-snippets.yml index 507a51bd..62c794f7 100644 --- a/.github/workflows/consolidate-snippets.yml +++ b/.github/workflows/consolidate-snippets.yml @@ -14,12 +14,12 @@ jobs: steps: - name: Checkout repository - uses: actions/checkout@v3 + uses: actions/checkout@v4 - name: Set up Node.js - uses: actions/setup-node@v3 + uses: actions/setup-node@v4 with: - node-version: "16" + node-version: 22 - name: Install dependencies run: | diff --git a/src/hooks/useLanguages.ts b/src/hooks/useLanguages.ts index dc669f61..0389ac44 100644 --- a/src/hooks/useLanguages.ts +++ b/src/hooks/useLanguages.ts @@ -3,8 +3,9 @@ import { LanguageType } from "@types"; import { useFetch } from "./useFetch"; export const useLanguages = () => { - const { data, loading, error } = - useFetch("/consolidated/_index.json"); + const { data, loading, error } = useFetch( + "/consolidated/_index.json" + ); return { fetchedLanguages: data || [], loading, error }; };

AltStyle によって変換されたページ (->オリジナル) /