-
Notifications
You must be signed in to change notification settings - Fork 0
50 lines (40 loc) · 1.16 KB
/
Copy pathdanger.yml
File metadata and controls
50 lines (40 loc) · 1.16 KB
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
name: Danger
on:
pull_request:
types: [opened, edited, synchronize, reopened]
permissions:
contents: read
pull-requests: write
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
danger:
name: Run Danger
runs-on: ubuntu-latest
if: github.event.pull_request.user.type != 'Bot'
steps:
- name: Generate GitHub App token
id: generate_token
uses: actions/create-github-app-token@v3
with:
client-id: ${{ secrets.NECTO_BOT_ID }}
private-key: ${{ secrets.NECTO_BOT_KEY }}
- name: Checkout
uses: actions/checkout@v6
with:
fetch-depth: 0
token: ${{ steps.generate_token.outputs.token }}
- name: Install PNPM
uses: pnpm/action-setup@v6
- name: Setup Node
uses: actions/setup-node@v6
with:
cache: pnpm
node-version-file: '.nvmrc'
- name: Install dependencies
run: pnpm install --frozen-lockfile --ignore-scripts
- name: Danger JS
run: pnpm exec danger ci
env:
DANGER_GITHUB_API_TOKEN: ${{ steps.generate_token.outputs.token }}