From 38d99c8bbd4810d76e17e127789ab6420b85ff78 Mon Sep 17 00:00:00 2001 From: Jeraldinne Molleda <71736942+jeraldinnemg@users.noreply.github.com> Date: Sat, 22 Feb 2025 01:34:33 -0300 Subject: [PATCH 1/6] 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..445bb33ed --- /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 6bb602257c83aae561f7c92ac9c06a5a869a8fb2 Mon Sep 17 00:00:00 2001 From: Jeraldinne Molleda <71736942+jeraldinnemg@users.noreply.github.com> Date: Sat, 22 Feb 2025 14:39:53 -0300 Subject: [PATCH 2/6] move these to save them for later --- .github/workflows/greetings.yml | 17 ----------------- .../templates}/custom-action.yml | 0 github-actions/templates/greetings.yml | 2 +- 3 files changed, 1 insertion(+), 18 deletions(-) delete mode 100644 .github/workflows/greetings.yml rename {.github/workflows => github-actions/templates}/custom-action.yml (100%) diff --git a/.github/workflows/greetings.yml b/.github/workflows/greetings.yml deleted file mode 100644 index 445bb33ed..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" 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-actions/templates/greetings.yml b/github-actions/templates/greetings.yml index 996da6bbd..445bb33ed 100644 --- a/github-actions/templates/greetings.yml +++ b/github-actions/templates/greetings.yml @@ -9,7 +9,7 @@ jobs: issues: write pull-requests: write steps: - # https://github.com/actions/first-interaction + #https://github.com/actions/first-interaction - uses: actions/first-interaction@v1 with: repo-token: ${{ secrets.GITHUB_TOKEN }} From bfc8bc91c7e67d51c29590ae2ae0d3bc24398bfd Mon Sep 17 00:00:00 2001 From: Jeraldinne Molleda <71736942+jeraldinnemg@users.noreply.github.com> Date: Sat, 22 Feb 2025 21:21:31 -0300 Subject: [PATCH 3/6] add schedule workflow --- .github/workflows/.keep | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/.github/workflows/.keep b/.github/workflows/.keep index e69de29bb..cf3180d74 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)" \ No newline at end of file From 0c65e7c42c7662b3ff6e8a75aff4644c598c4471 Mon Sep 17 00:00:00 2001 From: Jeraldinne Molleda <71736942+jeraldinnemg@users.noreply.github.com> Date: Sat, 22 Feb 2025 21:40:12 -0300 Subject: [PATCH 4/6] multievents added --- .github/workflows/multi-event.yml | 19 +++++++++++++++++++ .github/workflows/schedule.yml | 10 ++++++++++ 2 files changed, 29 insertions(+) create mode 100644 .github/workflows/multi-event.yml create mode 100644 .github/workflows/schedule.yml diff --git a/.github/workflows/multi-event.yml b/.github/workflows/multi-event.yml new file mode 100644 index 000000000..a3275be38 --- /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" \ No newline at end of file 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 84ae41b981496e65a28fbbc25c463b576ea0648e Mon Sep 17 00:00:00 2001 From: Jeraldinne Molleda <71736942+jeraldinnemg@users.noreply.github.com> Date: Sat, 22 Feb 2025 21:46:40 -0300 Subject: [PATCH 5/6] trigger workflow on dev --- README.md | 1 + 1 file changed, 1 insertion(+) diff --git a/README.md b/README.md index 43fc9143d..70ca242ad 100644 --- a/README.md +++ b/README.md @@ -1,2 +1,3 @@ # Github-Examples A repo containing GitHub for programmatic examples +#dev From af36a8270fd9e98da2f8caead4159a8c2d941071 Mon Sep 17 00:00:00 2001 From: Jeraldinne Molleda <71736942+jeraldinnemg@users.noreply.github.com> Date: Sat, 22 Feb 2025 21:57:36 -0300 Subject: [PATCH 6/6] trigger event on dev --- README.md | 1 + 1 file changed, 1 insertion(+) diff --git a/README.md b/README.md index 70ca242ad..def6c92da 100644 --- a/README.md +++ b/README.md @@ -1,3 +1,4 @@ # Github-Examples A repo containing GitHub for programmatic examples #dev +#dev2 \ No newline at end of file