From 46c226a3352e5a67d941921b6031457f4d7ba606 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/build-armbian.yml | 31 ++++++++++++++++--- .github/workflows/compile-kernel.yml | 3 +- .github/workflows/rebuild-armbian.yml | 4 +++ .../workflows/use-releases-file-to-build.yml | 13 ++++++-- 4 files changed, 43 insertions(+), 8 deletions(-) diff --git a/.github/workflows/build-armbian.yml b/.github/workflows/build-armbian.yml index 96107dd60a..29a69f6858 100644 --- a/.github/workflows/build-armbian.yml +++ b/.github/workflows/build-armbian.yml @@ -10,21 +10,38 @@ on: workflow_dispatch: inputs: set_branch: - description: "Branch: current / edge" + description: "Branch" required: false default: "current" + type: choice + options: + - current + - edge set_release: - description: "Release: jammy / focal / bullseye" + description: "Release" required: false default: "jammy" + type: choice + options: + - jammy + - focal + - bullseye set_board: - description: "Board: odroidn2 / lepotato" + description: "Board" required: false default: "odroidn2" + type: choice + options: + - odroidn2 + - lepotato set_desktop: - description: "Build Desktop: no / xfce" + description: "Build Desktop" required: false default: "no" + type: choice + options: + - no + - xfce armbian_soc: description: "Set Amlogic SoC." required: false @@ -38,9 +55,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 armbian_sign: description: "Set armbian custom name." required: false 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/rebuild-armbian.yml b/.github/workflows/rebuild-armbian.yml index 863332b379..aaf091fda2 100644 --- a/.github/workflows/rebuild-armbian.yml +++ b/.github/workflows/rebuild-armbian.yml @@ -29,6 +29,10 @@ on: description: "Set armbian rootfs type: ext4 / btrfs" required: false default: "ext4" + type: choice + options: + - ext4 + - btrfs env: TZ: Asia/Shanghai 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