Skip to content

Commit 359ee5a

Browse files
committed
manual workflow
1 parent dce24c0 commit 359ee5a

File tree

1 file changed

+32
-0
lines changed

1 file changed

+32
-0
lines changed

.github/workflows/manual.yml

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
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

0 commit comments

Comments
 (0)