From a9c838209a86c010f824df09f45d33deab0af39a Mon Sep 17 00:00:00 2001 From: Tomer Ziv <50826225+tomerzcod7@users.noreply.github.com> Date: Sat, 21 Dec 2024 14:56:14 +0200 Subject: [PATCH 1/4] 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 00000000..46774343 --- /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 e634cde53ada51f334f0396456f72f7efcc9754b Mon Sep 17 00:00:00 2001 From: Tomer Ziv <50826225+tomerzcod7@users.noreply.github.com> Date: Sat, 21 Dec 2024 15:05:05 +0200 Subject: [PATCH 2/4] delete greetings --- .github/workflows/greetings.yml | 16 ---------------- 1 file changed, 16 deletions(-) delete mode 100644 .github/workflows/greetings.yml diff --git a/.github/workflows/greetings.yml b/.github/workflows/greetings.yml deleted file mode 100644 index 46774343..00000000 --- a/.github/workflows/greetings.yml +++ /dev/null @@ -1,16 +0,0 @@ -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 9fb03e8731a7889cbecfb5979dd9ad34e4ea0a17 Mon Sep 17 00:00:00 2001 From: Tomer Ziv <50826225+tomerzcod7@users.noreply.github.com> Date: Sat, 21 Dec 2024 18:48:41 +0200 Subject: [PATCH 3/4] test --- README.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/README.md b/README.md index 43fc9143..d88899fd 100644 --- a/README.md +++ b/README.md @@ -1,2 +1,4 @@ # Github-Examples A repo containing GitHub for programmatic examples + +test \ No newline at end of file From aadb6130d887bc2770d890c6568f1b8531f5d772 Mon Sep 17 00:00:00 2001 From: Tomer Ziv <50826225+tomerzcod7@users.noreply.github.com> Date: Sat, 21 Dec 2024 18:57:16 +0200 Subject: [PATCH 4/4] add multi event --- .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 00000000..a3275be3 --- /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