diff --git a/.github/workflows/manual.yml b/.github/workflows/manual.yml index a8b21af..2e040ca 100644 --- a/.github/workflows/manual.yml +++ b/.github/workflows/manual.yml @@ -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」の参照