Add workflow to define runner name #3
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- | ||
name: Create output for `runs-on` variable | ||
on: | ||
workflow_call: | ||
inputs: | ||
runner_env: | ||
description: 'The environment input from caller workflow' | ||
default: 'SMS Lab' | ||
required: True | ||
type: string | ||
outputs: | ||
runner_name_image_build: | ||
description: "Image builder runner name" | ||
value: ${{ jobs.define_runner.outputs.image-build-runner }} | ||
runner_name_aio: | ||
description: "AiO runner name" | ||
value: ${{ jobs.define_runner.outputs.aio-runner }} | ||
jobs: | ||
define_runner: | ||
environment: ${{ inputs.runner_env }} | ||
runs-on: ubuntu-latest | ||
outputs: | ||
image-build-runner: ${{ vars.RUNS_ON_TARGET_IMAGE_BUILDER }} | ||
aio-runner: ${{ vars.RUNS_ON_TARGET_AIO }} |