Skip to content

Commit

Permalink
Merge pull request AOSSIE-Org#330 from HimaTeju/workflow/greeting-action
Browse files Browse the repository at this point in the history
fix: AOSSIE-Org#247 added yaml file
  • Loading branch information
Aarush-Acharya authored Jul 16, 2024
2 parents 1e9f3a9 + 5e28608 commit 437f503
Showing 1 changed file with 37 additions and 0 deletions.
37 changes: 37 additions & 0 deletions .github/WORK_FLOW/greet_contributors.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
name: Greet Contributors

on:
issues:
types: [opened]
pull_request:
types: [opened]

jobs:
greet:
runs-on: ubuntu-latest

steps:
- name: Print GitHub context
run: echo "${{ toJson(github) }}"

- name: Send greeting message for issues
if: github.event_name == 'issues'
uses: actions-ecosystem/action-create-comment@v1
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
repo: ${{ github.repository }}
number: ${{ github.event.issue.number }}
body: |
Hi @${{ github.event.issue.user.login }}!
Thanks for opening this issue, would you like to work on this?
- name: Send greeting message for PRs
if: github.event_name == 'pull_request'
uses: actions-ecosystem/action-create-comment@v1
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
repo: ${{ github.repository }}
number: ${{ github.event.pull_request.number }}
body: |
Hi @${{ github.event.pull_request.user.login }}! 🎉
Thanks for opening this pull request. We appreciate your contribution.

0 comments on commit 437f503

Please sign in to comment.