diff --git a/.github/workflows/update_curseforge_releases.yml b/.github/workflows/update_curseforge_releases.yml index 3c308bd..5a04bd7 100644 --- a/.github/workflows/update_curseforge_releases.yml +++ b/.github/workflows/update_curseforge_releases.yml @@ -21,6 +21,7 @@ jobs: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} concurrency: group: update-releases + cancel-in-progress: false steps: - uses: actions/checkout@v3 - run: npm ci diff --git a/.github/workflows/update_github_releases.yml b/.github/workflows/update_github_releases.yml index 90ddc3d..ca646b7 100644 --- a/.github/workflows/update_github_releases.yml +++ b/.github/workflows/update_github_releases.yml @@ -21,6 +21,7 @@ jobs: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} concurrency: group: update-releases + cancel-in-progress: false steps: - uses: actions/checkout@v3 - run: npm ci diff --git a/.github/workflows/update_modrinth_releases.yml b/.github/workflows/update_modrinth_releases.yml index cedd525..fa287b6 100644 --- a/.github/workflows/update_modrinth_releases.yml +++ b/.github/workflows/update_modrinth_releases.yml @@ -21,6 +21,7 @@ jobs: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} concurrency: group: update-releases + cancel-in-progress: false steps: - uses: actions/checkout@v3 - run: npm ci diff --git a/index-modrinth-releases.ts b/index-modrinth-releases.ts index 1d03ffa..2b28677 100644 --- a/index-modrinth-releases.ts +++ b/index-modrinth-releases.ts @@ -1,4 +1,4 @@ -import { mkdirSync, writeFileSync } from "node:fs"; +import {writeFileSync} from "node:fs"; export enum ModrinthReleaseType { RELEASE = "release", @@ -30,10 +30,10 @@ async function fetchReleases(): Promise { if (!response.ok) { throw new Error( "Failed to fetch. " + - response.status + - " (" + - (await response.text()) + - ")" + response.status + + " (" + + (await response.text()) + + ")" ); } @@ -54,7 +54,6 @@ async function fetchReleases(): Promise { ); } -mkdirSync("caches"); const releases = await fetchReleases(); writeFileSync( "caches/modrinth_releases.json",