forked from AOSSIE-Org/Resonate
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request AOSSIE-Org#330 from HimaTeju/workflow/greeting-action
fix: AOSSIE-Org#247 added yaml file
- Loading branch information
Showing
1 changed file
with
37 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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. |