-
Notifications
You must be signed in to change notification settings - Fork 93
36 lines (32 loc) · 933 Bytes
/
ci.yaml
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
34
35
36
on: pull_request
jobs:
test_comment_pr:
name: (NRT) Comment PR
runs-on: ubuntu-latest
permissions:
pull-requests: write
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Comment PR with message
uses: ./
with:
message: |
Current branch is `${{ github.head_ref }}`.
_(execution **${{ github.run_id }}** / attempt **${{ github.run_attempt }}**)_
comment_tag: nrt_message
reactions: eyes, rocket
mode: recreate
- name: Comment PR with file
uses: ./
with:
filePath: README.md
comment_tag: nrt_file
reactions: eyes, rocket
mode: recreate
- name: Do not comment PR if not exists
uses: ./
with:
message: Should not be printed
comment_tag: nrt_create_if_not_exists
create_if_not_exists: false