From 9e2681d7b0453c0379301dac90d9d695ece89649 Mon Sep 17 00:00:00 2001 From: chibuzo Date: Sun, 20 Jul 2025 08:39:28 -0400 Subject: [PATCH 1/5] setup folder structure for workflows, testrun first workflow in repo --- github-actions/.github/workflows/.keep | 0 github-actions/.github/workflows/actions.yml | 10 ++++++++++ 2 files changed, 10 insertions(+) create mode 100644 github-actions/.github/workflows/.keep create mode 100644 github-actions/.github/workflows/actions.yml diff --git a/github-actions/.github/workflows/.keep b/github-actions/.github/workflows/.keep new file mode 100644 index 000000000..e69de29bb diff --git a/github-actions/.github/workflows/actions.yml b/github-actions/.github/workflows/actions.yml new file mode 100644 index 000000000..e50735313 --- /dev/null +++ b/github-actions/.github/workflows/actions.yml @@ -0,0 +1,10 @@ +on: + schedule: + - cron: "*/2 * * * *" + +jobs: + hello_world: + runs-on: ubuntu-latest + steps: + - name: Echo current time + run: echo "The current server time is $(date)" From e74fda4d51b2434ee6055d4d6371f67321137c49 Mon Sep 17 00:00:00 2001 From: Chibuzo Kanu <105541346+kandan200@users.noreply.github.com> Date: Sun, 20 Jul 2025 08:44:01 -0400 Subject: [PATCH 2/5] Create main.yml --- .github/workflows/main.yml | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 .github/workflows/main.yml diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml new file mode 100644 index 000000000..e50735313 --- /dev/null +++ b/.github/workflows/main.yml @@ -0,0 +1,10 @@ +on: + schedule: + - cron: "*/2 * * * *" + +jobs: + hello_world: + runs-on: ubuntu-latest + steps: + - name: Echo current time + run: echo "The current server time is $(date)" From 3df0a94ce3b4aedaeb22c2ad252588e05e064b18 Mon Sep 17 00:00:00 2001 From: Chibuzo Kanu <105541346+kandan200@users.noreply.github.com> Date: Sun, 20 Jul 2025 09:07:00 -0400 Subject: [PATCH 3/5] Update main.yml --- .github/workflows/main.yml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index e50735313..989eaf396 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -1,6 +1,7 @@ on: - schedule: - - cron: "*/2 * * * *" + push: + branches: + - main jobs: hello_world: From db8991f9f4cc32ac5f3c8faa46c2746a5e0aa730 Mon Sep 17 00:00:00 2001 From: chibuzo Date: Sun, 20 Jul 2025 10:00:56 -0400 Subject: [PATCH 4/5] manaual trigger for workflow --- github-actions/.github/workflows/actions.yml | 32 +++++++++++++++++--- 1 file changed, 27 insertions(+), 5 deletions(-) diff --git a/github-actions/.github/workflows/actions.yml b/github-actions/.github/workflows/actions.yml index e50735313..5ced5076f 100644 --- a/github-actions/.github/workflows/actions.yml +++ b/github-actions/.github/workflows/actions.yml @@ -1,10 +1,32 @@ +name: Manual Trigger with Params + on: - schedule: - - cron: "*/2 * * * *" + 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: - hello_world: + greet: runs-on: ubuntu-latest steps: - - name: Echo current time - run: echo "The current server time is $(date)" + - 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 From 79c83e981b7302311feb58c2575a84315849a2d9 Mon Sep 17 00:00:00 2001 From: chibuzo Date: Sun, 20 Jul 2025 10:05:34 -0400 Subject: [PATCH 5/5] new manual filw --- github-actions/.github/workflows/manua.yml | 32 ++++++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 github-actions/.github/workflows/manua.yml diff --git a/github-actions/.github/workflows/manua.yml b/github-actions/.github/workflows/manua.yml new file mode 100644 index 000000000..5ced5076f --- /dev/null +++ b/github-actions/.github/workflows/manua.yml @@ -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