Skip to content
Open

Dev #303

Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
20 changes: 20 additions & 0 deletions .github/workflows/multi-event.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
on:
push:
branches:
- main
# - dev
pull_request:
branches:
- main

jobs:
hello_world:
runs-on: windows-latest
steps:
- name: "Echo Basic Information"
run: |

echo "REF: $env:GITHUB_REF"
echo "Job ID: $env:GITHUB_JOB"
echo "Action: $env:GITHUB_ACTION"
echo "Actor: $env:GITHUB_ACTOR"
10 changes: 10 additions & 0 deletions .github/workflows/schedule.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
on:
schedule:
- cron: "*/1 * * * *"

jobs:
hello_world:
runs-on: windows-latest
steps:
- name: Echo current time
run: echo "the current server time is $(Get-Date)"
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,2 +1,4 @@
# Github-Examples

A repo containing GitHub for programmatic examples
"mohamed test"
8 changes: 4 additions & 4 deletions github-actions/templates/manual.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,15 +4,15 @@ on:
workflow_dispatch:
inputs:
name:
description: 'Name of the person to greet'
description: "Name of the person to greet"
required: true
type: string
greeting:
description: 'Type of greeting'
description: "Type of greeting"
required: true
type: string
data:
description: 'Base64 encoded content of a file'
description: "Base64 encoded content of a file"
required: false
type: string

Expand All @@ -29,4 +29,4 @@ jobs:
- name: Display File Content
run: |
echo "Contents of the file:"
cat ./decoded_file.txt
cat ./decoded_file.txt
2 changes: 2 additions & 0 deletions myData.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
// { "hello": "mohamed" }
eyAiaGVsbG8iOiAibW9oYW1lZCIgfQ0K