Skip to content

Manual Trigger with Params #15

Manual Trigger with Params

Manual Trigger with Params #15

Workflow file for this run

name: Manual Trigger with Params
on:
workflow_dispatch:
inputs:
name:
description: "Name of the person to greet"
required: true
type: string
greeting:
description: "Type of greeting"
required: true
type: string
data:
description: "Base64 encoded content of a file"
required: false
type: string
jobs:
greet:
runs-on: ubuntu-latest
steps:
- name: Decode File Content
run: |
echo "${{ inputs.data }}" | base64 --decode > ./decoded_file.txt
- name: Display Greeting
run: |
echo "${{ inputs.greeting }}, ${{ inputs.name }}!"
- name: Display File Content
run: |
echo "Contents of the file:"
cat ./decoded_file.txt