diff --git a/.github/workflows/bottle.yml b/.github/workflows/bottle.yml index ba11caf3..eed08e57 100644 --- a/.github/workflows/bottle.yml +++ b/.github/workflows/bottle.yml @@ -30,7 +30,7 @@ jobs: path: $HOME/.cache/deno key: ${{ runner.os }}-deno-get-platform-${{ hashFiles('deno.jsonc')}} - uses: teaxyz/setup@v0 - - run: scripts/get-platform.ts ${{ inputs.projects }} + - run: scripts/get-platform.ts id: platform env: PLATFORM: ${{ inputs.platform }} diff --git a/scripts/get-platform.ts b/scripts/get-platform.ts index 8ffe555a..39c23978 100755 --- a/scripts/get-platform.ts +++ b/scripts/get-platform.ts @@ -102,7 +102,7 @@ if (Deno.env.get("GITHUB_OUTPUT")) { } function sizedUbuntu(packages: (Package | PackageRequirement)[]): string { - const size = Math.max(...packages.map(p => exceptions[p.project] ?? 2)) + const size = Math.max(2, ...packages.map(p => exceptions[p.project] ?? 2)) if (size == 2) { return "ubuntu-latest"