-
Notifications
You must be signed in to change notification settings - Fork 146
38 lines (31 loc) · 887 Bytes
/
danger.yml
File metadata and controls
38 lines (31 loc) · 887 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
33
34
35
36
37
38
name: Danger
on:
pull_request:
branches: [main, 'codefreeze-*']
permissions:
contents: read
pull-requests: write
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
danger:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Setup Node and Dependencies
uses: ./.github/actions/setup-node
- name: Generate token for Danger
id: generate_token
uses: actions/create-github-app-token@v2
with:
app-id: ${{ secrets.TEMPORAL_CICD_APP_ID }}
private-key: ${{ secrets.TEMPORAL_CICD_PRIVATE_KEY }}
owner: temporalio
repositories: ui
- name: Run Danger
run: pnpm exec danger ci --failOnErrors
env:
GITHUB_TOKEN: ${{ steps.generate_token.outputs.token }}