Skip to content

Commit f71ae43

Browse files
committed
updated
1 parent 1bd999a commit f71ae43

File tree

1 file changed

+14
-5
lines changed

1 file changed

+14
-5
lines changed

.github/workflows/build.yaml

Lines changed: 14 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,8 @@ on:
77
pull_request:
88
branches:
99
- main
10+
issues:
11+
types: [opened]
1012
workflow_dispatch:
1113

1214
env:
@@ -38,11 +40,18 @@ jobs:
3840
issues: write
3941
pull-requests: write
4042
steps:
41-
- uses: actions/first-interaction@v1
42-
with:
43-
repo-token: ${{ secrets.GITHUB_TOKEN }}
44-
issue-message: "Message that will be displayed on users' first issue"
45-
pr-message: "Message that will be displayed on users' first pull request"
43+
- name: Greeting on PR
44+
if: github.event_name == 'pull_request'
45+
uses: actions/first-interaction@v1
46+
with:
47+
repo-token: ${{ secrets.GITHUB_TOKEN }}
48+
pr-message: "Message that will be displayed on users' first pull request"
49+
- name: Greeting on Issue
50+
if: github.event_name == 'issues'
51+
uses: actions/first-interaction@v1
52+
with:
53+
repo-token: ${{ secrets.GITHUB_TOKEN }}
54+
issue-message: "Thank you for opening an issue! We appreciate your contribution and will review it shortly."
4655
welcome:
4756
name: Welcome
4857
runs-on: ubuntu-latest

0 commit comments

Comments
 (0)