-
Notifications
You must be signed in to change notification settings - Fork 5
49 lines (41 loc) · 1.16 KB
/
pr-bot-commenter.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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
name: PR bot commenter
on:
pull_request:
types: [opened, synchronize, reopened]
env:
CI: 'true'
#
# Limit workflow to a single running instance at a time
#
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
#
# Add a comment to the pull request
#
add-pr-comment:
name: Add pull request comment
runs-on: ubuntu-latest
steps:
- name: Checkout 🛎
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Fetch additional branches 🐕
run: |
git fetch origin ${GITHUB_HEAD_REF}:${GITHUB_HEAD_REF}
git fetch origin ${GITHUB_BASE_REF}:${GITHUB_BASE_REF}
- name: Setup Node 🏗
uses: actions/setup-node@v3
with:
node-version: '16'
cache: 'npm'
- name: Install Micromanage 🔬
run: npm --workspace packages/micromanage-cli install
- name: Install scripts package node modules 🏗
run: npm --workspace scripts install
- name: Run comment script 💬
run: node scripts/add-pr-comment.mjs
env:
PR_COMMENT_BOT_TOKEN: ${{ secrets.CARBON_BOT_TOKEN }}