Re-order runs-on value
This commit is contained in:
@@ -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);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user