Manual Trigger with Params #1
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
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 |