Skip to content

Commit

Permalink
remove .gitignore and add manual trigger workflow with parameters
Browse files Browse the repository at this point in the history
  • Loading branch information
sgotluru committed Jan 10, 2025
1 parent b09e6ca commit 41776ad
Show file tree
Hide file tree
Showing 3 changed files with 34 additions and 2 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
2 changes: 2 additions & 0 deletions .github/workflows/mydata
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
// {"Hello" : "Mars"}
SGVsbG8gTWFycw==
2 changes: 0 additions & 2 deletions .gitignore

This file was deleted.

0 comments on commit 41776ad

Please sign in to comment.