From 9503ee910b8c9a7e4e17fa42692a2817aa0e6ae9 Mon Sep 17 00:00:00 2001 From: divyb234 Date: Mon, 14 Jul 2025 15:35:02 -0500 Subject: [PATCH 1/3] Create greetings.yml --- .github/workflows/greetings.yml | 17 +++++++++++++++++ 1 file changed, 17 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..996da6bbd --- /dev/null +++ b/.github/workflows/greetings.yml @@ -0,0 +1,17 @@ +name: Greetings + +on: [pull_request_target, issues] + +jobs: + greeting: + runs-on: ubuntu-latest + permissions: + issues: write + pull-requests: write + steps: + # https://github.com/actions/first-interaction + - 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 f95e4870783b16851f9f7bdc436936ff90bccf00 Mon Sep 17 00:00:00 2001 From: divyb234 Date: Thu, 17 Jul 2025 15:28:02 -0500 Subject: [PATCH 2/3] add schedule workflow --- .github/workflows/.keep | 1 + .github/workflows/schedule.yml | 10 ++++++++++ github-actions/templates/schedule.yml | 2 +- 3 files changed, 12 insertions(+), 1 deletion(-) create mode 100644 .github/workflows/schedule.yml diff --git a/.github/workflows/.keep b/.github/workflows/.keep index e69de29bb..d3f5a12fa 100644 --- a/.github/workflows/.keep +++ b/.github/workflows/.keep @@ -0,0 +1 @@ + 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)" diff --git a/github-actions/templates/schedule.yml b/github-actions/templates/schedule.yml index a88231de6..9ae566778 100644 --- a/github-actions/templates/schedule.yml +++ b/github-actions/templates/schedule.yml @@ -1,6 +1,6 @@ on: schedule: - - cron: '*/5 * * * *' + - cron: '*/2 * * * *' jobs: hello_world: From 5181eb698013ededd565ad7d0fd908107c0b717f Mon Sep 17 00:00:00 2001 From: divyb234 Date: Thu, 17 Jul 2025 15:57:09 -0500 Subject: [PATCH 3/3] 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