Re-order runs-on value

This commit is contained in:
Christopher Schleiden
2022-11-28 15:47:46 -08:00
parent e4b185d165
commit a217edfbc6
@@ -9,8 +9,8 @@ export async function getRunnerLabels(
name: string name: string
): Promise<Value[]> { ): Promise<Value[]> {
const defaultLabels = [ const defaultLabels = [
"ubuntu-22.04",
"ubuntu-latest", "ubuntu-latest",
"ubuntu-22.04",
"ubuntu-20.04", "ubuntu-20.04",
"ubuntu-18.04", "ubuntu-18.04",
"windows-latest", "windows-latest",
@@ -24,7 +24,11 @@ export async function getRunnerLabels(
"self-hosted", "self-hosted",
]; ];
const repoLabels = await cache.get(`${owner}/${name}/runner-labels`, undefined, () => fetchRunnerLabels(client, owner, name)); const repoLabels = await cache.get(
`${owner}/${name}/runner-labels`,
undefined,
() => fetchRunnerLabels(client, owner, name)
);
for (const label of defaultLabels) { for (const label of defaultLabels) {
repoLabels.add(label); repoLabels.add(label);
} }