File tree Expand file tree Collapse file tree 5 files changed +34
-36
lines changed
Expand file tree Collapse file tree 5 files changed +34
-36
lines changed Load Diff This file was deleted.
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 1+ name : Manual Trigger with Params
2+
3+ on :
4+ workflow_dispatch :
5+ inputs :
6+ name :
7+ description : ' Name of the person to greet'
8+ required : true
9+ type : string
10+ greeting :
11+ description : ' Type of greeting'
12+ required : true
13+ type : string
14+ data :
15+ description : ' Base64 encoded content of a file'
16+ required : false
17+ type : string
18+
19+ jobs :
20+ greet :
21+ runs-on : ubuntu-latest
22+ steps :
23+ - name : Decode File Content
24+ run : |
25+ echo "${{ inputs.data }}" | base64 --decode > ./decoded_file.txt
26+ - name : Display Greeting
27+ run : |
28+ echo "${{ inputs.greeting }}, ${{ inputs.name }}!"
29+ - name : Display File Content
30+ run : |
31+ echo "Contents of the file:"
32+ cat ./decoded_file.txt
Original file line number Diff line number Diff line change 11## Manual Trigger
22
33```sh
4- gh workflow run greet .yml -f name=mona -f greeting=hello -F data=@myfile .txt
4+ gh workflow run manual .yml -f name=mona -f greeting=hello -F data=@mydata .txt
55echo '{"name":"mona", "greeting":"hello"}' | gh workflow run greet.yml --json
66```
77
Original file line number Diff line number Diff line change 1- SGVsbG8gTWFycw ==
1+ SGVsbG8gZnJvbSBHSCBBY3Rpb25zIQ ==
You can’t perform that action at this time.
0 commit comments