From 871f044eb248e311edee18b020305f30db462cd3 Mon Sep 17 00:00:00 2001 From: californiaAlmonds <160736368+californiaAlmonds@users.noreply.github.com> Date: Wed, 12 Mar 2025 16:39:16 +0530 Subject: [PATCH 1/9] 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 0639c8f96e317912c9be39dd4c23a2712ba5d445 Mon Sep 17 00:00:00 2001 From: californiaAlmonds <160736368+californiaAlmonds@users.noreply.github.com> Date: Wed, 12 Mar 2025 16:58:58 +0530 Subject: [PATCH 2/9] first change --- {.github/workflows => github-actions/templates}/custom-action.yml | 0 .../greetings.yml => github-actions/templates/greetings copy.yml | 0 2 files changed, 0 insertions(+), 0 deletions(-) rename {.github/workflows => github-actions/templates}/custom-action.yml (100%) rename .github/workflows/greetings.yml => github-actions/templates/greetings copy.yml (100%) diff --git a/.github/workflows/custom-action.yml b/github-actions/templates/custom-action.yml similarity index 100% rename from .github/workflows/custom-action.yml rename to github-actions/templates/custom-action.yml diff --git a/.github/workflows/greetings.yml b/github-actions/templates/greetings copy.yml similarity index 100% rename from .github/workflows/greetings.yml rename to github-actions/templates/greetings copy.yml From e7f4a4f1e529c6e8a1d9b6baba4d3402f1041668 Mon Sep 17 00:00:00 2001 From: californiaAlmonds <160736368+californiaAlmonds@users.noreply.github.com> Date: Wed, 12 Mar 2025 17:02:16 +0530 Subject: [PATCH 3/9] add schedule workflow --- .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 10124ec1995c3276b9d4563be3e7b1cf5b409f08 Mon Sep 17 00:00:00 2001 From: californiaAlmonds <160736368+californiaAlmonds@users.noreply.github.com> Date: Wed, 12 Mar 2025 17:02:41 +0530 Subject: [PATCH 4/9] schedule to 1 min --- .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 9ae566778..4186413d9 100644 --- a/.github/workflows/schedule.yml +++ b/.github/workflows/schedule.yml @@ -1,6 +1,6 @@ on: schedule: - - cron: '*/2 * * * *' + - cron: '*/1 * * * *' jobs: hello_world: From 08ece8b1279a0e69412b53c5b54209793ffed935 Mon Sep 17 00:00:00 2001 From: californiaAlmonds <160736368+californiaAlmonds@users.noreply.github.com> Date: Wed, 12 Mar 2025 17:08:26 +0530 Subject: [PATCH 5/9] every minute schedule --- .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 4186413d9..d641233c9 100644 --- a/.github/workflows/schedule.yml +++ b/.github/workflows/schedule.yml @@ -1,6 +1,6 @@ on: schedule: - - cron: '*/1 * * * *' + - cron: '* * * * *' jobs: hello_world: From 95e27fb4548ffb5a29b31b0ea6cde4865f187bdc Mon Sep 17 00:00:00 2001 From: californiaAlmonds <160736368+californiaAlmonds@users.noreply.github.com> Date: Wed, 12 Mar 2025 17:11:46 +0530 Subject: [PATCH 6/9] change schedule --- .github/workflows/schedule.yml | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/.github/workflows/schedule.yml b/.github/workflows/schedule.yml index d641233c9..c27a3f360 100644 --- a/.github/workflows/schedule.yml +++ b/.github/workflows/schedule.yml @@ -1,10 +1,12 @@ +name: Print Time Every Minute + on: schedule: - cron: '* * * * *' jobs: - hello_world: + print-time: runs-on: ubuntu-latest steps: - - name: Echo current time - run: echo "The current server time is $(date)" + - name: Print current time + run: date \ No newline at end of file From 980b1e0e5d631ba866cc1df18871eaf933aa2fc9 Mon Sep 17 00:00:00 2001 From: californiaAlmonds <160736368+californiaAlmonds@users.noreply.github.com> Date: Thu, 13 Mar 2025 16:53:28 +0530 Subject: [PATCH 7/9] Update greetings.yml --- github-actions/templates/greetings.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/github-actions/templates/greetings.yml b/github-actions/templates/greetings.yml index 996da6bbd..c0b7e3d95 100644 --- a/github-actions/templates/greetings.yml +++ b/github-actions/templates/greetings.yml @@ -10,7 +10,7 @@ jobs: pull-requests: write steps: # https://github.com/actions/first-interaction - - uses: actions/first-interaction@v1 + - uses: actions/first-interaction@v1.3.0 with: repo-token: ${{ secrets.GITHUB_TOKEN }} issue-message: "Message that will be displayed on users' first issue" From 22995773880ed276aeae629d39022602a2feb551 Mon Sep 17 00:00:00 2001 From: californiaAlmonds <160736368+californiaAlmonds@users.noreply.github.com> Date: Thu, 13 Mar 2025 16:54:25 +0530 Subject: [PATCH 8/9] move greetings.yml --- {github-actions/templates => .github/workflows}/greetings.yml | 0 1 file changed, 0 insertions(+), 0 deletions(-) rename {github-actions/templates => .github/workflows}/greetings.yml (100%) diff --git a/github-actions/templates/greetings.yml b/.github/workflows/greetings.yml similarity index 100% rename from github-actions/templates/greetings.yml rename to .github/workflows/greetings.yml From 2e0e86e6a1a2ce68c25b965bf7b19a0735915bdb Mon Sep 17 00:00:00 2001 From: californiaAlmonds <160736368+californiaAlmonds@users.noreply.github.com> Date: Thu, 13 Mar 2025 16:55:47 +0530 Subject: [PATCH 9/9] 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 c0b7e3d95..bb4722533 100644 --- a/.github/workflows/greetings.yml +++ b/.github/workflows/greetings.yml @@ -1,6 +1,6 @@ name: Greetings -on: [pull_request_target, issues] +on: [push, issues] jobs: greeting: