From 4144d381a4898442f866b38da2142e4e126de09e Mon Sep 17 00:00:00 2001 From: nikunjpurohit Date: Sun, 19 May 2024 20:06:45 +0530 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 9fff7c75def69a88471f41322287f6868c494870 Mon Sep 17 00:00:00 2001 From: nikunjpurohit Date: Wed, 22 May 2024 16:31:46 +0530 Subject: [PATCH 2/6] Create schedule.yml --- .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..a88231de6 --- /dev/null +++ b/.github/workflows/schedule.yml @@ -0,0 +1,10 @@ +on: + schedule: + - cron: '*/5 * * * *' + +jobs: + hello_world: + runs-on: ubuntu-latest + steps: + - name: Echo current time + run: echo "The current server time is $(date)" From a25997548bb910371261a0df291f4712dabb0462 Mon Sep 17 00:00:00 2001 From: nikunjpurohit Date: Wed, 22 May 2024 22:00:39 +0530 Subject: [PATCH 3/6] Create multi-event.yml --- .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..073bf7b05 --- /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" From 96e83f90946264fd6fa88ae9f8912bc3cd121919 Mon Sep 17 00:00:00 2001 From: nikunjpurohit Date: Thu, 23 May 2024 13:31:28 +0530 Subject: [PATCH 4/6] chnage_multi --- .github/workflows/schedule.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/schedule.yml b/.github/workflows/schedule.yml index a88231de6..15ee93998 100644 --- a/.github/workflows/schedule.yml +++ b/.github/workflows/schedule.yml @@ -7,4 +7,4 @@ jobs: runs-on: ubuntu-latest steps: - name: Echo current time - run: echo "The current server time is $(date)" + run: echo "The current server time are $(date)" From a0529a973963b25fab97c6fb9c66cd5dbb75f7c1 Mon Sep 17 00:00:00 2001 From: nikunjpurohit Date: Thu, 23 May 2024 13:34:57 +0530 Subject: [PATCH 5/6] Update schedule.yml --- .github/workflows/schedule.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/schedule.yml b/.github/workflows/schedule.yml index 15ee93998..84f6b6ac5 100644 --- a/.github/workflows/schedule.yml +++ b/.github/workflows/schedule.yml @@ -7,4 +7,4 @@ jobs: runs-on: ubuntu-latest steps: - name: Echo current time - run: echo "The current server time are $(date)" + run: echo "The current server time is is $(date)" From ed5dc6342637218fce9a7d2d13192bccf80871d6 Mon Sep 17 00:00:00 2001 From: nikunjpurohit Date: Tue, 4 Jun 2024 01:24:57 +0530 Subject: [PATCH 6/6] Create webhook.yml --- .github/workflows/webhook.yml | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 .github/workflows/webhook.yml diff --git a/.github/workflows/webhook.yml b/.github/workflows/webhook.yml new file mode 100644 index 000000000..bb989e410 --- /dev/null +++ b/.github/workflows/webhook.yml @@ -0,0 +1,15 @@ +name: "Webhook Event example" + +on: + repository_dispatch: + types: + - webhook + +jobs: + respond-to-dispatch: + runs-on: ubuntu-latest + steps: + - name: Checkout repo + uses: actions/checkout@v2 + - name: Run a script + run: echo "Event of type $GITHUB_EVENT_NAME"