From 347a711810c5a5fabf2ed25941bce8484c65f644 Mon Sep 17 00:00:00 2001 From: Siddharth Dileep <68823710+SidMcStarter@users.noreply.github.com> Date: Thu, 25 Sep 2025 13:47:48 -0600 Subject: [PATCH 1/3] Add GitHub Actions workflow for greetings --- .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 ea40325ca2056b43574f6e544b494dab5f0e9544 Mon Sep 17 00:00:00 2001 From: Siddharth Dileep <68823710+SidMcStarter@users.noreply.github.com> Date: Thu, 25 Sep 2025 14:18:25 -0600 Subject: [PATCH 2/3] created a yaml file --- .github/workflows/greetings.yml | 16 ---------------- .github/workflows/schedule.yml | 10 ++++++++++ github-actions/templates/greetings.yml | 1 - 3 files changed, 10 insertions(+), 17 deletions(-) delete mode 100644 .github/workflows/greetings.yml create mode 100644 .github/workflows/schedule.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/workflows/schedule.yml b/.github/workflows/schedule.yml new file mode 100644 index 000000000..13f4bad6d --- /dev/null +++ b/.github/workflows/schedule.yml @@ -0,0 +1,10 @@ +on: + schedule: + - cron: "*/2 * * * *" # run every two minutes + +jobs: + first-job: + runs-on: ubuntu-latest + steps: + - name: Echo current time + run: echo "The current server time is $(date)" 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 c05ca105e380d63efe27145e6a0c04426e203291 Mon Sep 17 00:00:00 2001 From: Siddharth Dileep <68823710+SidMcStarter@users.noreply.github.com> Date: Thu, 25 Sep 2025 14:31:31 -0600 Subject: [PATCH 3/3] made a multi event workflow --- .github/workflows/multi-event.yml | 18 ++++++++++++++++++ 1 file changed, 18 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..3ec38072f --- /dev/null +++ b/.github/workflows/multi-event.yml @@ -0,0 +1,18 @@ +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_RUN_ID" + echo "ACTION: $GITHUB_ACTION"