forked from coral-xyz/backpack
-
Notifications
You must be signed in to change notification settings - Fork 0
59 lines (51 loc) · 1.44 KB
/
pull_requests.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
50
51
52
53
54
55
56
57
58
59
# Actions that only run when opening or updating pull requests
name: Pull Requests
on:
pull_request:
types: [opened, synchronize]
branches:
- master
jobs:
add-labels-based-on-whats-changed:
name: Add PR labels
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: dorny/paths-filter@v2
id: changes
with:
filters: |
mobile:
- 'packages/app-mobile/**'
extension:
- 'packages/app-extension/**'
xnft:
- 'packages/react-xnft/**'
- 'packages/xnft/**'
- 'packages/xnft-cli/**'
backend:
- 'backend/**'
- if: steps.changes.outputs.mobile == 'true'
uses: andymckay/labeler@1.0.4
with:
add-labels: "mobile"
- if: steps.changes.outputs.extension == 'true'
uses: andymckay/labeler@1.0.4
with:
add-labels: "extension"
- if: steps.changes.outputs.xnft == 'true'
uses: andymckay/labeler@1.0.4
with:
add-labels: "xnft"
- if: steps.changes.outputs.backend == 'true'
uses: andymckay/labeler@1.0.4
with:
add-labels: "backend"
yarn-lock-changes:
name: yarn.lock changes
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: simek/yarn-lock-changes@main
with:
token: ${{ secrets.GITHUB_TOKEN }}