From 727117c572c4473fcda77e56b2875cadf96d10df Mon Sep 17 00:00:00 2001 From: Jack Vanel <100318096+jacquesvanel@users.noreply.github.com> Date: Sun, 1 Mar 2026 16:32:16 -0600 Subject: [PATCH 1/3] Add GitHub Actions workflow for greeting users --- .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 99b89d4f64074ac1487b9beab9c179216eb95e57 Mon Sep 17 00:00:00 2001 From: Jack Vanel <100318096+jacquesvanel@users.noreply.github.com> Date: Sun, 1 Mar 2026 16:38:28 -0600 Subject: [PATCH 2/3] Update GitHub Actions to trigger on push and pull request --- .github/workflows/greetings.yml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/.github/workflows/greetings.yml b/.github/workflows/greetings.yml index 46774343e..bd6e688b4 100644 --- a/.github/workflows/greetings.yml +++ b/.github/workflows/greetings.yml @@ -1,6 +1,9 @@ name: Greetings -on: [pull_request_target, issues] +on: + push: + branches: main + pull_request: jobs: greeting: From 9f730b77764f9af22af30ad2522a4256a4ef03ff Mon Sep 17 00:00:00 2001 From: Jack Vanel <100318096+jacquesvanel@users.noreply.github.com> Date: Sun, 1 Mar 2026 16:39:55 -0600 Subject: [PATCH 3/3] Fix workflow syntax and update branch reference --- .github/workflows/custom-action.yml | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/.github/workflows/custom-action.yml b/.github/workflows/custom-action.yml index 7a87b53f1..132608b5a 100644 --- a/.github/workflows/custom-action.yml +++ b/.github/workflows/custom-action.yml @@ -1,4 +1,6 @@ -on: [push] +on: + push: + branches: main jobs: my-job: @@ -12,4 +14,5 @@ jobs: 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 + + run: echo "The time was ${{ steps.hello.outputs.greeting }}"