From b86b49d733df9bf178cdf6697369a13b7458e542 Mon Sep 17 00:00:00 2001 From: Cong-Cong Date: Wed, 4 Dec 2024 12:58:36 +0800 Subject: [PATCH] fix: outputs in get-runner-labels --- .github/actions/download-artifact/action.yml | 2 +- .github/workflows/get-runner-labels.yml | 22 ++++++++++++++++++-- 2 files changed, 21 insertions(+), 3 deletions(-) diff --git a/.github/actions/download-artifact/action.yml b/.github/actions/download-artifact/action.yml index dd694f39a6ae..0f45a05dc002 100644 --- a/.github/actions/download-artifact/action.yml +++ b/.github/actions/download-artifact/action.yml @@ -4,7 +4,7 @@ description: Download file to local or artifact to quickly share files between j inputs: type: - description: "Use github or local or lynx cache" + description: "Use github, local or lynx cache" required: true type: string choices: diff --git a/.github/workflows/get-runner-labels.yml b/.github/workflows/get-runner-labels.yml index a2fb75991c09..168654e38f80 100644 --- a/.github/workflows/get-runner-labels.yml +++ b/.github/workflows/get-runner-labels.yml @@ -12,12 +12,30 @@ on: LINUX_RUNNER_LABELS: description: "linux runner labels" value: ${{ jobs.main.outputs.LINUX_RUNNER_LABELS }} + LINUX_RUNNER_TYPE: + description: "linux runner type" + value: ${{ jobs.main.outputs.LINUX_RUNNER_TYPE }} + LINUX_CACHE_TYPE: + description: "cache type used for linux runner" + value: ${{ jobs.main.outputs.LINUX_CACHE_TYPE }} MACOS_RUNNER_LABELS: description: "macos runner labels" value: ${{ jobs.main.outputs.MACOS_RUNNER_LABELS }} + MACOS_RUNNER_TYPE: + description: "macos runner type" + value: ${{ jobs.main.outputs.MACOS_RUNNER_TYPE }} + MACOS_CACHE_TYPE: + description: "cache type used for macos runner" + value: ${{ jobs.main.outputs.MACOS_CACHE_TYPE }} WINDOWS_RUNNER_LABELS: description: "windows runner labels" value: ${{ jobs.main.outputs.WINDOWS_RUNNER_LABELS }} + WINDOWS_RUNNER_TYPE: + description: "windows runner type" + value: ${{ jobs.main.outputs.WINDOWS_RUNNER_TYPE }} + WINDOWS_CACHE_TYPE: + description: "cache type used for windows runner" + value: ${{ jobs.main.outputs.WINDOWS_CACHE_TYPE }} jobs: main: @@ -83,5 +101,5 @@ jobs: # TODO: test echo "WINDOWS_RUNNER_LABELS='"volc-windows-2022-medium"'" >> "$GITHUB_OUTPUT" - echo "WINDOWS_RUNNER_TYPE='k8s'" >> "$GITHUB_OUTPUT" - echo "WINDOWS_CACHE_TYPE='lynx'" >> "$GITHUB_OUTPUT" + echo "WINDOWS_RUNNER_TYPE=k8s" >> "$GITHUB_OUTPUT" + echo "WINDOWS_CACHE_TYPE=lynx" >> "$GITHUB_OUTPUT"