From 2fc77cb8d1cc9192cc509f544cf5e48ea87780e9 Mon Sep 17 00:00:00 2001 From: selvamsekar66 Date: Tue, 5 Aug 2025 23:42:07 +0530 Subject: [PATCH 01/13] Update custom-action.yml --- .github/workflows/custom-action.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/workflows/custom-action.yml b/.github/workflows/custom-action.yml index 7a87b53f1..5f11648dc 100644 --- a/.github/workflows/custom-action.yml +++ b/.github/workflows/custom-action.yml @@ -1,3 +1,4 @@ +name: Addingname on: [push] jobs: @@ -12,4 +13,5 @@ jobs: name: 'Brown' # Use the output from the `hello` step - name: Get the Output - run: echo "The time was ${{ steps.hello.outputs.greeting }}" \ No newline at end of file + + run: echo "The time was ${{ steps.hello.outputs.greeting }}" From 51cad6e578c0631e4a6b6076afd0cc78ed4e7bc2 Mon Sep 17 00:00:00 2001 From: selvamsekar66 Date: Tue, 5 Aug 2025 23:50:43 +0530 Subject: [PATCH 02/13] Create greetings.yml --- .github/workflows/greetings.yml | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 .github/workflows/greetings.yml diff --git a/.github/workflows/greetings.yml b/.github/workflows/greetings.yml new file mode 100644 index 000000000..46774343e --- /dev/null +++ b/.github/workflows/greetings.yml @@ -0,0 +1,16 @@ +name: Greetings + +on: [pull_request_target, issues] + +jobs: + greeting: + runs-on: ubuntu-latest + permissions: + issues: write + pull-requests: write + steps: + - uses: actions/first-interaction@v1 + with: + repo-token: ${{ secrets.GITHUB_TOKEN }} + issue-message: "Message that will be displayed on users' first issue" + pr-message: "Message that will be displayed on users' first pull request" From 2a496f238ba9efa5e98794a02ac4393c7522bfb7 Mon Sep 17 00:00:00 2001 From: selvamsekar66 Date: Sun, 17 Aug 2025 11:26:21 +0530 Subject: [PATCH 03/13] Added test schedule events --- .github/workflows/test-schedule.yml | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 .github/workflows/test-schedule.yml diff --git a/.github/workflows/test-schedule.yml b/.github/workflows/test-schedule.yml new file mode 100644 index 000000000..0e5cebe8c --- /dev/null +++ b/.github/workflows/test-schedule.yml @@ -0,0 +1,15 @@ +name: Test Schedule Workflows + + +on: + schedule: + - cron : "*/1 * * * *" + +Jobs: + test-job: + run-on: ubuntu-latest + steps: + - name: show current time + run: | + echo "Workflow triggered at $(date - u)" + echo "Hello from Github actions" \ No newline at end of file From ea8b3e4f11bf9d88bd09e68caf50e3b722687395 Mon Sep 17 00:00:00 2001 From: selvamsekar66 Date: Sun, 17 Aug 2025 11:28:17 +0530 Subject: [PATCH 04/13] fixed the error --- .github/workflows/test-schedule.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/test-schedule.yml b/.github/workflows/test-schedule.yml index 0e5cebe8c..7b4e2b6b9 100644 --- a/.github/workflows/test-schedule.yml +++ b/.github/workflows/test-schedule.yml @@ -5,7 +5,7 @@ on: schedule: - cron : "*/1 * * * *" -Jobs: +jobs: test-job: run-on: ubuntu-latest steps: From e34df13d60e80c4d83d5b2e186a9844b24d8b0f3 Mon Sep 17 00:00:00 2001 From: selvamsekar66 Date: Sun, 17 Aug 2025 11:29:41 +0530 Subject: [PATCH 05/13] spell mistake correted --- .github/workflows/test-schedule.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/test-schedule.yml b/.github/workflows/test-schedule.yml index 7b4e2b6b9..5420c5ba9 100644 --- a/.github/workflows/test-schedule.yml +++ b/.github/workflows/test-schedule.yml @@ -7,7 +7,7 @@ on: jobs: test-job: - run-on: ubuntu-latest + runs-on: ubuntu-latest steps: - name: show current time run: | From 48847246743bc0ce21de238821fdc19cbccdb769 Mon Sep 17 00:00:00 2001 From: selvamsekar66 Date: Sun, 17 Aug 2025 11:33:06 +0530 Subject: [PATCH 06/13] immediate trigger --- .github/workflows/test-schedule.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/test-schedule.yml b/.github/workflows/test-schedule.yml index 5420c5ba9..469a1ee9e 100644 --- a/.github/workflows/test-schedule.yml +++ b/.github/workflows/test-schedule.yml @@ -4,6 +4,7 @@ name: Test Schedule Workflows on: schedule: - cron : "*/1 * * * *" + workflow_dispatch: jobs: test-job: From 17b9dd06dee08441a5952c7018a0396f41368a40 Mon Sep 17 00:00:00 2001 From: selvamsekar66 Date: Sun, 17 Aug 2025 11:34:38 +0530 Subject: [PATCH 07/13] space removed --- .github/workflows/test-schedule.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/test-schedule.yml b/.github/workflows/test-schedule.yml index 469a1ee9e..c76abfe34 100644 --- a/.github/workflows/test-schedule.yml +++ b/.github/workflows/test-schedule.yml @@ -12,5 +12,5 @@ jobs: steps: - name: show current time run: | - echo "Workflow triggered at $(date - u)" + echo "Workflow triggered at $(date -u)" echo "Hello from Github actions" \ No newline at end of file From 92efc511a89c176c23a487ca89a6073b53067148 Mon Sep 17 00:00:00 2001 From: selvamsekar66 Date: Sun, 17 Aug 2025 11:57:04 +0530 Subject: [PATCH 08/13] Single_Event_test --- .github/workflows/single_event.yml | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 .github/workflows/single_event.yml diff --git a/.github/workflows/single_event.yml b/.github/workflows/single_event.yml new file mode 100644 index 000000000..6a58e31ae --- /dev/null +++ b/.github/workflows/single_event.yml @@ -0,0 +1,13 @@ +name: Single Event Workflow + +on: + push: + branches: + - main + + +jobs: + build: + runs-on: ubuntu-latest + steps: + -run : echo "Triggered only on push to main branch" \ No newline at end of file From 8fbbac999a4ca7550a7c2e4d4f25f9fb68108d50 Mon Sep 17 00:00:00 2001 From: selvamsekar66 Date: Sun, 17 Aug 2025 11:58:48 +0530 Subject: [PATCH 09/13] indentation for single event fixed --- .github/workflows/single_event.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/single_event.yml b/.github/workflows/single_event.yml index 6a58e31ae..50a300d31 100644 --- a/.github/workflows/single_event.yml +++ b/.github/workflows/single_event.yml @@ -1,13 +1,13 @@ -name: Single Event Workflow +name: Single Event Example on: push: branches: - main - jobs: build: runs-on: ubuntu-latest steps: - -run : echo "Triggered only on push to main branch" \ No newline at end of file + - name: Run build step + run: echo "Triggered only on push to main branch" \ No newline at end of file From 46b1587597074b9b8e5ef7bbc6f2414421b7694c Mon Sep 17 00:00:00 2001 From: selvamsekar66 Date: Sun, 17 Aug 2025 12:02:34 +0530 Subject: [PATCH 10/13] multi event --- .github/workflows/multi_event.yml | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 .github/workflows/multi_event.yml diff --git a/.github/workflows/multi_event.yml b/.github/workflows/multi_event.yml new file mode 100644 index 000000000..6af0680ff --- /dev/null +++ b/.github/workflows/multi_event.yml @@ -0,0 +1,10 @@ +name: Single Event Example + +on: [push, pull_request] + +jobs: + build: + runs-on: ubuntu-latest + steps: + - name: Run build step + run: echo "Triggered only on push or pull request" \ No newline at end of file From 785927fe9c4f2bb03f21e5f47e7e97e1523585ee Mon Sep 17 00:00:00 2001 From: selvamsekar66 Date: Sun, 17 Aug 2025 12:03:14 +0530 Subject: [PATCH 11/13] name correction --- .github/workflows/multi_event.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/multi_event.yml b/.github/workflows/multi_event.yml index 6af0680ff..f452e3ae0 100644 --- a/.github/workflows/multi_event.yml +++ b/.github/workflows/multi_event.yml @@ -1,4 +1,4 @@ -name: Single Event Example +name: Multi Event Example on: [push, pull_request] From 9c9b909663fbb0e5c37a06101f6a290aa0754236 Mon Sep 17 00:00:00 2001 From: selvamsekar66 Date: Sun, 17 Aug 2025 13:37:06 +0530 Subject: [PATCH 12/13] Conditional workflows --- .github/workflows/conditional.yml | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 .github/workflows/conditional.yml diff --git a/.github/workflows/conditional.yml b/.github/workflows/conditional.yml new file mode 100644 index 000000000..a7e9eb82a --- /dev/null +++ b/.github/workflows/conditional.yml @@ -0,0 +1,14 @@ +name: Conditional-workflow +on: [push] +jobs: + hello-world: + if: github.repository == 'octo-org/octo-repo-prod' + runs-on: ubuntu-latest + steps: + - name: "Hello World" + run: echo "Hello World!" + goodbye-moon: + runs-on: ubuntu-latest + steps: + - name: "Goodbye Moon" + run: echo "Goodbye Moon!" \ No newline at end of file From 9db3ce6b6d0c83b59ab1a2cb18de260fc398461f Mon Sep 17 00:00:00 2001 From: selvamsekar66 Date: Sun, 17 Aug 2025 13:38:34 +0530 Subject: [PATCH 13/13] correct git repo name --- .github/workflows/conditional.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/conditional.yml b/.github/workflows/conditional.yml index a7e9eb82a..08cab96f3 100644 --- a/.github/workflows/conditional.yml +++ b/.github/workflows/conditional.yml @@ -2,7 +2,7 @@ name: Conditional-workflow on: [push] jobs: hello-world: - if: github.repository == 'octo-org/octo-repo-prod' + if: github.repository == 'git@github.com:selvamsekar66/GH200-Examples' runs-on: ubuntu-latest steps: - name: "Hello World"