From e23c3916952e7162a7c22a81129b520b80a099d4 Mon Sep 17 00:00:00 2001 From: LoveSy <631499712@qq.com> Date: Thu, 16 Jun 2022 15:08:40 +0800 Subject: [PATCH] Use `choice` for github action workflows --- .github/workflows/compile-kernel.yml | 3 ++- .github/workflows/use-releases-file-to-build.yml | 13 +++++++++++-- 2 files changed, 13 insertions(+), 3 deletions(-) diff --git a/.github/workflows/compile-kernel.yml b/.github/workflows/compile-kernel.yml index a758e85fa3..c703b22a01 100644 --- a/.github/workflows/compile-kernel.yml +++ b/.github/workflows/compile-kernel.yml @@ -20,7 +20,8 @@ on: kernel_auto: description: "Auto use the latest kernel" required: false - default: "true" + default: true + type: boolean kernel_sign: description: "Set the kernel custom signature" required: false diff --git a/.github/workflows/use-releases-file-to-build.yml b/.github/workflows/use-releases-file-to-build.yml index 4bb65b0b1a..412c99832a 100644 --- a/.github/workflows/use-releases-file-to-build.yml +++ b/.github/workflows/use-releases-file-to-build.yml @@ -10,9 +10,14 @@ on: workflow_dispatch: inputs: sel_tags_keywords: - description: "Release: jammy / focal / bullseye" + description: "Release" required: false default: "jammy" + type: choice + options: + - jammy + - focal + - bullseye armbian_soc: description: "Set Amlogic SoC." required: false @@ -26,9 +31,13 @@ on: required: false default: "2748" armbian_fstype: - description: "Set armbian rootfs type: ext4 / btrfs" + description: "Set armbian rootfs type." required: false default: "ext4" + type: choice + options: + - ext4 + - btrfs env: TZ: Asia/Shanghai