-
Notifications
You must be signed in to change notification settings - Fork 921
35 lines (32 loc) · 946 Bytes
/
danger.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
name: Danger
on:
pull_request_target:
types: [opened, synchronize]
permissions:
pull-requests: write
statuses: write
jobs:
danger:
runs-on: ubuntu-22.04
steps:
- name: Check out code
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Setup ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: 3.1
rubygems: 3.4.10
bundler-cache: true
- name: Create base branch
run: |
git fetch ${{ github.event.pull_request.base.repo.clone_url }} ${{ github.event.pull_request.base.ref }}:danger_base
- name: Create head branch
run: |
git fetch ${{ github.event.pull_request.head.repo.clone_url }} ${{ github.event.pull_request.head.ref }}:danger_head
- name: Danger
env:
DANGER_GITHUB_BEARER_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
bundle exec danger --verbose