forked from vmware-samples/vcenter-event-broker-appliance
-
Notifications
You must be signed in to change notification settings - Fork 0
33 lines (28 loc) · 969 Bytes
/
issue-greeting.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
name: Greeting
on:
issues:
types: ["opened"]
jobs:
greeting:
name: Send Greeting
runs-on: ubuntu-latest
# only send message to users not (yet) associated with repo
# https://docs.github.com/en/graphql/reference/enums#commentauthorassociation
if: github.event.issue.author_association == 'NONE'
steps:
- name: Checkout
uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332
with:
fetch-depth: 1
- name: Render template
id: template
uses: chuhlomin/render-template@807354a04d9300c9c2ac177c0aa41556c92b3f75
with:
template: .github/comment-template.md
vars: |
author: ${{ github.actor }}
- name: Create comment
uses: peter-evans/create-or-update-comment@71345be0265236311c031f5c7866368bd1eff043
with:
issue-number: ${{ github.event.issue.number }}
body: ${{ steps.template.outputs.result }}