generated from pheonix-coder/flask-minimal-template
-
Notifications
You must be signed in to change notification settings - Fork 48
27 lines (25 loc) · 1015 Bytes
/
greetings.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
name: Greetings
on:
issues:
types: [opened]
pull_request_target:
types: [opened]
jobs:
greeting:
runs-on: ubuntu-latest
permissions:
issues: write
pull-requests: write
steps:
- name: Send greeting for issues
if: github.event_name == 'issues'
run: |
echo "::set-output name=message::👋 Thank you @${{ github.actor }} for raising an issue! We appreciate your effort in helping us improve. Our team will review it shortly. Stay tuned!"
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Send greeting for pull requests
if: github.event_name == 'pull_request_target'
run: |
echo "::set-output name=message:: 🎉 Thank you @${{ github.actor }} for your contribution! Your pull request has been submitted successfully. A maintainer will review it as soon as possible. We appreciate your support in making this project better."
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}