mirror of
https://github.com/ivabus/pantry
synced 2024-11-27 02:35:08 +03:00
if projects are unknown, get-platform.ts still needs a return
This commit is contained in:
parent
7007a564b6
commit
2f7e0f3a93
2 changed files with 2 additions and 2 deletions
2
.github/workflows/bottle.yml
vendored
2
.github/workflows/bottle.yml
vendored
|
@ -30,7 +30,7 @@ jobs:
|
||||||
path: $HOME/.cache/deno
|
path: $HOME/.cache/deno
|
||||||
key: ${{ runner.os }}-deno-get-platform-${{ hashFiles('deno.jsonc')}}
|
key: ${{ runner.os }}-deno-get-platform-${{ hashFiles('deno.jsonc')}}
|
||||||
- uses: teaxyz/setup@v0
|
- uses: teaxyz/setup@v0
|
||||||
- run: scripts/get-platform.ts ${{ inputs.projects }}
|
- run: scripts/get-platform.ts
|
||||||
id: platform
|
id: platform
|
||||||
env:
|
env:
|
||||||
PLATFORM: ${{ inputs.platform }}
|
PLATFORM: ${{ inputs.platform }}
|
||||||
|
|
|
@ -102,7 +102,7 @@ if (Deno.env.get("GITHUB_OUTPUT")) {
|
||||||
}
|
}
|
||||||
|
|
||||||
function sizedUbuntu(packages: (Package | PackageRequirement)[]): string {
|
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) {
|
if (size == 2) {
|
||||||
return "ubuntu-latest"
|
return "ubuntu-latest"
|
||||||
|
|
Loading…
Reference in a new issue