-
Notifications
You must be signed in to change notification settings - Fork 13
41 lines (35 loc) · 1.26 KB
/
pr-commands.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
name: PR commands
# Commands that can be run via a comment on the PR.
# Comment `!pr <command-name>` to trigger them.
# See config/pr-commands.json for configuration
# Use `!pr help` for help
#
# See https://github.com/Siteimprove/pr-command
on:
issue_comment:
types: [created]
jobs:
pull-request-command:
runs-on: ubuntu-latest
steps:
- name: "Should pr command run?"
id: should-run
uses: siteimprove/pr-command/check-run/[email protected]
with:
# Personal access token (PAT) used to fetch the repository and add reaction on comment.
token: ${{ secrets.BUILDUSER_GITHUB_WRITE }}
# The repository has been checked out by PR commands!
- name: "Set up Node"
if: env.PR_COMMAND_WILL_RUN == 'true'
uses: actions/setup-node@v4
with:
# We use version 20 in the integrate workflow
node-version: 20
- name: "Install dependencies"
if: env.PR_COMMAND_WILL_RUN == 'true'
run: yarn install --immutable
- name: "React to command"
uses: siteimprove/pr-command/check-run/[email protected]
with:
# Personal access token (PAT) used to fetch the repository and add reaction on comment.
token: ${{ secrets.BUILDUSER_GITHUB_WRITE }}