-
Notifications
You must be signed in to change notification settings - Fork 1
32 lines (31 loc) · 866 Bytes
/
Copy pathpr-comment.yaml
File metadata and controls
32 lines (31 loc) · 866 Bytes
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
name: PR comment
on:
issue_comment:
workflow_dispatch:
jobs:
pr_commented:
name: PR comment workflow
if: |
github.event.issue.pull_request &&
contains(github.event.comment.body, 'test comment')
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@main
- name: Use Node 16
uses: actions/setup-node@v2
with:
node-version: '16'
- name: install
# TODO: change to yarn when running in RSP
run: npm install
- name: What is the pr info?
run: |
echo '${{ toJSON(github) }}'
- name: Check write permissions
uses: ./.github/actions/permissions
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Create branch
uses: ./.github/actions/branch
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}