]> git.openstreetmap.org Git - rails.git/blob - .github/workflows/danger.yml
Merge pull request #4761 from AntonKhorev:dark-mode-with-close-button
[rails.git] / .github / workflows / danger.yml
1 name: Danger
2
3 on:
4   pull_request_target:
5     types: [opened, synchronize]
6
7 permissions:
8   pull-requests: write
9   statuses: write
10
11 jobs:
12   danger:
13     runs-on: ubuntu-22.04
14     steps:
15       - name: Check out code
16         uses: actions/checkout@v4
17         with:
18           fetch-depth: 0
19       - name: Setup ruby
20         uses: ruby/setup-ruby@v1
21         with:
22           ruby-version: 3.1
23           rubygems: 3.4.10
24           bundler-cache: true
25       - name: Create base branch
26         run: |
27           git fetch ${{ github.event.pull_request.base.repo.clone_url }} ${{ github.event.pull_request.base.ref }}:danger_base
28       - name: Create head branch
29         run: |
30           git fetch ${{ github.event.pull_request.head.repo.clone_url }} ${{ github.event.pull_request.head.ref }}:danger_head
31       - name: Danger
32         env:
33           DANGER_GITHUB_BEARER_TOKEN: ${{ secrets.GITHUB_TOKEN }}
34         run: |
35           bundle exec danger --verbose