From 2320463165ebad08f7bdad5f9de3749186479602 Mon Sep 17 00:00:00 2001 From: harsha-var27 Date: Fri, 25 Jul 2025 00:10:23 +0530 Subject: [PATCH 1/5] 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 31ae08adc94347b7144b2ecbc7375c1a71028425 Mon Sep 17 00:00:00 2001 From: harsha-var27 Date: Fri, 25 Jul 2025 00:16:23 +0530 Subject: [PATCH 2/5] Update greetings.yml --- .github/workflows/greetings.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/greetings.yml b/.github/workflows/greetings.yml index 46774343e..b0c7e60f7 100644 --- a/.github/workflows/greetings.yml +++ b/.github/workflows/greetings.yml @@ -1,6 +1,6 @@ name: Greetings -on: [pull_request_target, issues] +on: [push] jobs: greeting: From 2df6edb8e79df91e39b63fc41a2baa8303203ea8 Mon Sep 17 00:00:00 2001 From: harsha-var27 Date: Fri, 25 Jul 2025 17:15:50 +0530 Subject: [PATCH 3/5] Scedule workflow --- .github/workflows/schedule.yml | 11 +++++++++++ 1 file changed, 11 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..89f697bc3 --- /dev/null +++ b/.github/workflows/schedule.yml @@ -0,0 +1,11 @@ +on: + schedule: + - cron: '17 17 * * *' + + +jobs: + my-schedule-job: + runs-on: ubuntu-latest + steps: + - name: Echo Current time + run: echo "The current server time is $(date)" \ No newline at end of file From 243e3a6c902be74f5367e17da78bea356e8b65bb Mon Sep 17 00:00:00 2001 From: harsha-var27 Date: Fri, 25 Jul 2025 17:37:47 +0530 Subject: [PATCH 4/5] New commit for schedule --- .github/workflows/custom-action.yml | 15 --------------- .github/workflows/greetings.yml | 16 ---------------- .github/workflows/schedule.yml | 3 +-- 3 files changed, 1 insertion(+), 33 deletions(-) delete mode 100644 .github/workflows/custom-action.yml delete mode 100644 .github/workflows/greetings.yml diff --git a/.github/workflows/custom-action.yml b/.github/workflows/custom-action.yml deleted file mode 100644 index 7a87b53f1..000000000 --- a/.github/workflows/custom-action.yml +++ /dev/null @@ -1,15 +0,0 @@ -on: [push] - -jobs: - my-job: - runs-on: ubuntu-latest - name: A job to say hello - steps: - - name: Hello world action step - id: hello - uses: omenking/barsoom@0.0.6 - with: - 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 diff --git a/.github/workflows/greetings.yml b/.github/workflows/greetings.yml deleted file mode 100644 index b0c7e60f7..000000000 --- a/.github/workflows/greetings.yml +++ /dev/null @@ -1,16 +0,0 @@ -name: Greetings - -on: [push] - -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 index 89f697bc3..133d8692d 100644 --- a/.github/workflows/schedule.yml +++ b/.github/workflows/schedule.yml @@ -1,7 +1,6 @@ on: schedule: - - cron: '17 17 * * *' - + - cron: '39 17 * * *' jobs: my-schedule-job: From 7888f0f0e04a2eee258b700e8230cebfb9ae62b7 Mon Sep 17 00:00:00 2001 From: harsha-var27 Date: Fri, 25 Jul 2025 17:42:21 +0530 Subject: [PATCH 5/5] new multi-event workflow --- .github/workflows/multiple events.yml | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 .github/workflows/multiple events.yml diff --git a/.github/workflows/multiple events.yml b/.github/workflows/multiple events.yml new file mode 100644 index 000000000..a6b8d0d73 --- /dev/null +++ b/.github/workflows/multiple events.yml @@ -0,0 +1,18 @@ +on: + push: + branches: + - main + 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