From 5deed499553d1b661eee0424c3476b2257c3a348 Mon Sep 17 00:00:00 2001 From: Sata Date: Sat, 17 May 2025 19:31:16 +0200 Subject: [PATCH 1/7] 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..9c6842f38 --- /dev/null +++ b/.github/workflows/greetings.yml @@ -0,0 +1,16 @@ +name: Greetings + +on: [pull_request_target, issues] # EVENT IT TRIGGERS ON + +jobs: + greeting: + runs-on: ubuntu-latest ## image + 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 0c642b8d9ff748ede0264b7ef64f96423b798e37 Mon Sep 17 00:00:00 2001 From: Sata Date: Sat, 17 May 2025 19:39:25 +0200 Subject: [PATCH 2/7] 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 9c6842f38..30e178b5a 100644 --- a/.github/workflows/greetings.yml +++ b/.github/workflows/greetings.yml @@ -1,6 +1,6 @@ name: Greetings -on: [pull_request_target, issues] # EVENT IT TRIGGERS ON +on: [pull_request_target, issues, pull_request] # EVENT IT TRIGGERS ON jobs: greeting: From 324866deeb9cf149bcd51ae1389aa10dec5e5505 Mon Sep 17 00:00:00 2001 From: pitki Date: Sat, 17 May 2025 19:47:14 +0200 Subject: [PATCH 3/7] chore: lets start actions --- .github/workflows/greetings.yml | 2 +- .gitignore | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) create mode 100644 .gitignore diff --git a/.github/workflows/greetings.yml b/.github/workflows/greetings.yml index 30e178b5a..e07815905 100644 --- a/.github/workflows/greetings.yml +++ b/.github/workflows/greetings.yml @@ -1,6 +1,6 @@ name: Greetings -on: [pull_request_target, issues, pull_request] # EVENT IT TRIGGERS ON +on: [pull_request, pull_request_target, issues] # EVENT IT TRIGGERS ON jobs: greeting: diff --git a/.gitignore b/.gitignore new file mode 100644 index 000000000..485dee64b --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +.idea From 1d5dca1a94c8193790298c875c321b65450fdc9e Mon Sep 17 00:00:00 2001 From: pitki Date: Sat, 17 May 2025 20:09:17 +0200 Subject: [PATCH 4/7] chore:move templates --- .github/workflows/greetings.yml | 16 ----------- .../templates}/custom-action.yml | 28 +++++++++---------- github-actions/templates/greetings.yml | 5 ++-- 3 files changed, 16 insertions(+), 33 deletions(-) delete mode 100644 .github/workflows/greetings.yml rename {.github/workflows => github-actions/templates}/custom-action.yml (96%) diff --git a/.github/workflows/greetings.yml b/.github/workflows/greetings.yml deleted file mode 100644 index e07815905..000000000 --- a/.github/workflows/greetings.yml +++ /dev/null @@ -1,16 +0,0 @@ -name: Greetings - -on: [pull_request, pull_request_target, issues] # EVENT IT TRIGGERS ON - -jobs: - greeting: - runs-on: ubuntu-latest ## image - 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/custom-action.yml b/github-actions/templates/custom-action.yml similarity index 96% rename from .github/workflows/custom-action.yml rename to github-actions/templates/custom-action.yml index 7a87b53f1..d82fa02c8 100644 --- a/.github/workflows/custom-action.yml +++ b/github-actions/templates/custom-action.yml @@ -1,15 +1,15 @@ -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 +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-actions/templates/greetings.yml b/github-actions/templates/greetings.yml index 996da6bbd..e07815905 100644 --- a/github-actions/templates/greetings.yml +++ b/github-actions/templates/greetings.yml @@ -1,15 +1,14 @@ name: Greetings -on: [pull_request_target, issues] +on: [pull_request, pull_request_target, issues] # EVENT IT TRIGGERS ON jobs: greeting: - runs-on: ubuntu-latest + runs-on: ubuntu-latest ## image permissions: issues: write pull-requests: write steps: - # https://github.com/actions/first-interaction - uses: actions/first-interaction@v1 with: repo-token: ${{ secrets.GITHUB_TOKEN }} From 73caf07f3aafb812827f503b0bdc95f74b1ae7ee Mon Sep 17 00:00:00 2001 From: pitki Date: Sun, 18 May 2025 08:24:50 +0200 Subject: [PATCH 5/7] scheduler cron --- .github/workflows/scheduler.yml | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 .github/workflows/scheduler.yml diff --git a/.github/workflows/scheduler.yml b/.github/workflows/scheduler.yml new file mode 100644 index 000000000..adedf13a6 --- /dev/null +++ b/.github/workflows/scheduler.yml @@ -0,0 +1,10 @@ +name: Scheduler +on : + schedule: + - cron: '*/5 * * * *' +jobs: + hello_time: + runs-on: ubuntu-latest + steps: + - name: hello time + run: echo "The time is here $date" From cafc397d8b7f3b6291d645073eeb0737de33121d Mon Sep 17 00:00:00 2001 From: pitki Date: Sun, 18 May 2025 08:29:27 +0200 Subject: [PATCH 6/7] add workflows --- .github/workflows/scheduler.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/scheduler.yml b/.github/workflows/scheduler.yml index adedf13a6..7459035ac 100644 --- a/.github/workflows/scheduler.yml +++ b/.github/workflows/scheduler.yml @@ -1,10 +1,10 @@ name: Scheduler on : schedule: - - cron: '*/5 * * * *' + - cron: '*/1 * * * *' jobs: hello_time: runs-on: ubuntu-latest steps: - name: hello time - run: echo "The time is here $date" + run: echo "The time is here $(date)" From 3ff4e43f2d9eabfac5f2007b5bfd207773e0043c Mon Sep 17 00:00:00 2001 From: pitki Date: Sun, 18 May 2025 20:47:53 +0200 Subject: [PATCH 7/7] multievnt changes --- .github/workflows/multiEvent.yml | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 .github/workflows/multiEvent.yml diff --git a/.github/workflows/multiEvent.yml b/.github/workflows/multiEvent.yml new file mode 100644 index 000000000..11ca004cc --- /dev/null +++ b/.github/workflows/multiEvent.yml @@ -0,0 +1,22 @@ +name: MultiEvent +on: + push: + branches: + - test + - main + pull_request: + branches: + - main + + +jobs: + build: + runs-on: ubuntu-latest + steps: + #- uses: actions/checkout@v2 + - name: Echo basis info + run: | + echo "REF: $GITHUB_REF" + echo "JOB_ID: $GITHUB_JOB" + echo "GITHUB_ACTION: $GITHUB_ACTION" + echo "GITHUB_ACTOR: $GITHUB_ACTOR" \ No newline at end of file