From 67d7de7c43e785d576b7293995c3041fe68e265d Mon Sep 17 00:00:00 2001 From: HASSAN ZAHID Date: Wed, 14 Oct 2026 17:37:38 +0500 Subject: [PATCH 1/6] 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 6ca19ac9ab191cce5cdcb60176730508326d239a Mon Sep 17 00:00:00 2001 From: HASSAN ZAHID Date: Wed, 14 Oct 2026 17:54:14 +0500 Subject: [PATCH 2/6] moved gretting to templates for future use --- .github/workflows/greetings.yml | 16 ---------------- github-actions/templates/greetings.yml | 1 - 2 files changed, 17 deletions(-) delete mode 100644 .github/workflows/greetings.yml diff --git a/.github/workflows/greetings.yml b/.github/workflows/greetings.yml deleted file mode 100644 index 46774343e..000000000 --- a/.github/workflows/greetings.yml +++ /dev/null @@ -1,16 +0,0 @@ -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" diff --git a/github-actions/templates/greetings.yml b/github-actions/templates/greetings.yml index 996da6bbd..46774343e 100644 --- a/github-actions/templates/greetings.yml +++ b/github-actions/templates/greetings.yml @@ -9,7 +9,6 @@ jobs: issues: write pull-requests: write steps: - # https://github.com/actions/first-interaction - uses: actions/first-interaction@v1 with: repo-token: ${{ secrets.GITHUB_TOKEN }} From bccf61bd9ee65f0552c6f19e281da0b8f05eed3b Mon Sep 17 00:00:00 2001 From: HASSAN ZAHID Date: Thu, 15 Oct 2026 00:10:51 +0500 Subject: [PATCH 3/6] added schedule --- .github/workflows/schedule.yml | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 .github/workflows/schedule.yml diff --git a/.github/workflows/schedule.yml b/.github/workflows/schedule.yml new file mode 100644 index 000000000..9ae566778 --- /dev/null +++ b/.github/workflows/schedule.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 4eb44b92580b5543d9088a9eeeaaebc96d0bde7c Mon Sep 17 00:00:00 2001 From: HASSAN ZAHID Date: Thu, 15 Oct 2026 00:21:20 +0500 Subject: [PATCH 4/6] multi event template --- .github/workflows/multi-event.yml | 19 +++++++++++++++++++ 1 file changed, 19 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..a3275be38 --- /dev/null +++ b/.github/workflows/multi-event.yml @@ -0,0 +1,19 @@ +on: + push: + branches: + - main + - dev + pull_request: + branches: + - main + +jobs: + hello_world: + runs-on: ubuntu-latest + steps: + - name: "Echo Basic Information" + run: | + echo "REF: $GITHUB_REF" + echo "Job ID: $GITHUB_JOB" + echo "Action: $GITHUB_ACTION" + echo "Actor: $GITHUB_ACTOR" \ No newline at end of file From fd582f36fa14f5d2861aa5a934a41ef15246ba9e Mon Sep 17 00:00:00 2001 From: HASSAN ZAHID Date: Thu, 15 Oct 2026 00:24:03 +0500 Subject: [PATCH 5/6] trigger workflow --- README.md | 1 + 1 file changed, 1 insertion(+) diff --git a/README.md b/README.md index 43fc9143d..907b2e127 100644 --- a/README.md +++ b/README.md @@ -1,2 +1,3 @@ # Github-Examples A repo containing GitHub for programmatic examples + \ No newline at end of file From a8bd2b81b064ad4ccfdbc443de331dff5e3c22d0 Mon Sep 17 00:00:00 2001 From: HASSAN ZAHID Date: Thu, 15 Oct 2026 00:43:58 +0500 Subject: [PATCH 6/6] on push triger --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 907b2e127..5bd494dd6 100644 --- a/README.md +++ b/README.md @@ -1,3 +1,3 @@ # Github-Examples A repo containing GitHub for programmatic examples - \ No newline at end of file + \ No newline at end of file