Skip to content

Commit

Permalink
chore: use choice type
Browse files Browse the repository at this point in the history
  • Loading branch information
Cloud-Xero committed Jun 7, 2024
1 parent 756c70a commit ac9b64f
Showing 1 changed file with 16 additions and 6 deletions.
22 changes: 16 additions & 6 deletions .github/workflows/manual.yml
Original file line number Diff line number Diff line change
@@ -1,14 +1,24 @@
name: Manual
on:
workflow_dispatch: # 手動実行イベント
# inputs:
# greeting: # 入力パラメータ名
# type: string # データ型(文字列)
# default: Hello # 入力パラメータのデフォルト値
# required: true # 入力パラメータの必須フラグ
# description: A cheerful word # 入力パラメータの概要

inputs:
greeting: # 入力パラメータ名
type: string # データ型(文字列)
default: Hello # 入力パラメータのデフォルト値
required: true # 入力パラメータの必須フラグ
description: A cheerful word # 入力パラメータの概要
log-level:
type: choice # 入力パラメータを特定の値に制限
options: # 受け付ける入力値を列挙
- info
- warn
- error

jobs:
run:
runs-on: ubuntu-latest
steps:
- run: echo "${{ inputs.greeting }}" # 入力パラメータ「greeting」の参照
# - run: echo "${{ inputs.greeting }}" # 入力パラメータ「greeting」の参照
- run: echo "${{ inputs.log-level }}" # 入力パラメータ「log-level」の参照

0 comments on commit ac9b64f

Please sign in to comment.