Skip to content

Commit

Permalink
manual workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
YRohitha committed Nov 29, 2024
1 parent c2870cd commit 3ccecda
Show file tree
Hide file tree
Showing 2 changed files with 33 additions and 0 deletions.
32 changes: 32 additions & 0 deletions .github/workflows/manual.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
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
1 change: 1 addition & 0 deletions mydata.json
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"Hello": "Mars"}

0 comments on commit 3ccecda

Please sign in to comment.