]> git.openstreetmap.org Git - rails.git/blob - .github/workflows/labeling.yml
4693ca570c47fac65f52a099230bca9f82f64fb6
[rails.git] / .github / workflows / labeling.yml
1 name: Danger
2
3 run-name: Updating labels for current PR
4
5 on:
6   pull_request_target:
7     types: [opened, synchronize]
8
9 permissions:
10   issues: write
11
12 jobs:
13   danger:
14     runs-on: ubuntu-22.04
15     steps:
16       - name: Check out code
17         uses: actions/checkout@v4
18         with:
19           fetch-depth: 0
20       - name: Setup ruby
21         uses: ruby/setup-ruby@v1
22         with:
23           ruby-version: 3.1
24           rubygems: 3.4.10
25           bundler-cache: true
26       - name: Danger
27         env:
28           DANGER_GITHUB_BEARER_TOKEN: ${{ secrets.GITHUB_TOKEN }}
29         run: |
30           bundle exec danger --verbose --base=${{ github.base_ref }} --head=${{ github.head_ref }}