]> git.openstreetmap.org Git - rails.git/blob - .github/workflows/danger.yml
Merge remote-tracking branch 'upstream/pull/5296'
[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: Danger
26         env:
27           DANGER_GITHUB_BEARER_TOKEN: ${{ secrets.GITHUB_TOKEN }}
28         run: |
29           bundle exec danger --verbose