Re-order runs-on value

This commit is contained in:
Christopher Schleiden
2022-11-28 14:55:50 -08:00
parent e4b185d165
commit a217edfbc6
@@ -9,8 +9,8 @@ export async function getRunnerLabels(
name: string
): Promise<Value[]> {
const defaultLabels = [
"ubuntu-22.04",
"ubuntu-latest",
"ubuntu-22.04",
"ubuntu-20.04",
"ubuntu-18.04",
"windows-latest",
@@ -24,7 +24,11 @@ export async function getRunnerLabels(
"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) {
repoLabels.add(label);
}