From c81c900a947a2a450c828b43b0d7d9e455e2baf2 Mon Sep 17 00:00:00 2001 From: SilverSparrow Date: Mon, 24 Feb 2025 23:21:52 +0530 Subject: [PATCH 1/7] 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 5b3aa097d0ba8e366800ef9cefdf7b9816b1fbbd Mon Sep 17 00:00:00 2001 From: SilverSparrow Date: Mon, 24 Feb 2025 23:53:22 +0530 Subject: [PATCH 2/7] move these to save them for later --- .github/workflows/custom-action.yml | 15 --------------- .github/workflows/greetings.yml | 17 ----------------- 2 files changed, 32 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 996da6bbd..000000000 --- a/.github/workflows/greetings.yml +++ /dev/null @@ -1,17 +0,0 @@ -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 b363cfae8dd68c3b13eefe3c2b4b957eecd8a2e2 Mon Sep 17 00:00:00 2001 From: SilverSparrow Date: Tue, 25 Feb 2025 18:55:53 +0530 Subject: [PATCH 3/7] add schedule workflow --- .github/workflows/.keep | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/.github/workflows/.keep b/.github/workflows/.keep index e69de29bb..9ae566778 100644 --- a/.github/workflows/.keep +++ b/.github/workflows/.keep @@ -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 f4ce0e54544571f728fcfdb93fc0b93dc6b3ce01 Mon Sep 17 00:00:00 2001 From: SilverSparrow Date: Tue, 25 Feb 2025 19:03:13 +0530 Subject: [PATCH 4/7] add scheduled workflow --- .github/{workflows => workflow}/.keep | 0 1 file changed, 0 insertions(+), 0 deletions(-) rename .github/{workflows => workflow}/.keep (100%) diff --git a/.github/workflows/.keep b/.github/workflow/.keep similarity index 100% rename from .github/workflows/.keep rename to .github/workflow/.keep From 2a8457d8bfeb352cd54b5d4288d5fcee9ee3094f Mon Sep 17 00:00:00 2001 From: SilverSparrow Date: Tue, 25 Feb 2025 19:04:31 +0530 Subject: [PATCH 5/7] 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..6742b4093 --- /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: + - 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 53757112618debd14e6710d800ec8f6896628bb4 Mon Sep 17 00:00:00 2001 From: SilverSparrow Date: Tue, 25 Feb 2025 19:09:13 +0530 Subject: [PATCH 6/7] fgihoidjoijd doifjgoidj --- .github/workflow/.keep | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflow/.keep b/.github/workflow/.keep index 9ae566778..3f463fd3b 100644 --- a/.github/workflow/.keep +++ b/.github/workflow/.keep @@ -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 is the world $(date)" From ec96436a523c2013cbea3a10f37e9a3c62bd63e9 Mon Sep 17 00:00:00 2001 From: SilverSparrow Date: Tue, 25 Feb 2025 19:47:49 +0530 Subject: [PATCH 7/7] trigger workflow on dev --- README.md | 1 + 1 file changed, 1 insertion(+) diff --git a/README.md b/README.md index 43fc9143d..7d14817ce 100644 --- a/README.md +++ b/README.md @@ -1,2 +1,3 @@ # Github-Examples A repo containing GitHub for programmatic examples + \ No newline at end of file