From a54f53fb11a4f15d5e661dbd1907c942c037cc06 Mon Sep 17 00:00:00 2001 From: "Jason N." <33561705+JasonN3@users.noreply.github.com> Date: Wed, 14 Feb 2024 22:04:24 +0000 Subject: [PATCH] make callable --- .github/workflows/iso.yml | 28 +++++++++++++++++++++++----- 1 file changed, 23 insertions(+), 5 deletions(-) diff --git a/.github/workflows/iso.yml b/.github/workflows/iso.yml index 58e2465..42d62ec 100644 --- a/.github/workflows/iso.yml +++ b/.github/workflows/iso.yml @@ -7,13 +7,31 @@ on: tags: - 'v*' pull_request: + + workflow_call: + inputs: + IMAGE_VERSION: + required: true + type: string + IMAGE_ARCH: + required: true + type: string + IMAGE_NAME: + required: true + type: string + IMAGE_REPO: + required: true + type: string + IMAGE_REPO: + required: true + type: string env: - IMAGE_VERSION: 39 - IMAGE_ARCH: x86_64 - IMAGE_NAME: base-main - IMAGE_REPO: ghcr.io/ublue-os - VARIANT: Silverblue + IMAGE_VERSION: ${{ github.event.inputs.IMAGE_VERSION || '39' }} + IMAGE_ARCH: ${{ github.event.inputs.IMAGE_ARCH || 'x86_64' }} + IMAGE_NAME: ${{ github.event.inputs.IMAGE_NAME || 'base-main' }} + IMAGE_REPO: ${{ github.event.inputs.IMAGE_REPO || 'ghcr.io/ublue-os' }} + VARIANT: ${{ github.event.inputs.VARIANT || 'Silverblue' }} jobs: