-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
756c70a
commit ac9b64f
Showing
1 changed file
with
16 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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」の参照 |