]> git.openstreetmap.org Git - rails.git/blob - .github/workflows/labeling.yml
Update bundle
[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   pull-requests: write
11   statuses: write
12
13 jobs:
14   danger:
15     runs-on: ubuntu-22.04
16     steps:
17       - name: Check out code
18         uses: actions/checkout@v4
19         with:
20           fetch-depth: 0
21       - name: Setup ruby
22         uses: ruby/setup-ruby@v1
23         with:
24           ruby-version: 3.1
25           rubygems: 3.4.10
26           bundler-cache: true
27       - name: Danger
28         env:
29           DANGER_GITHUB_BEARER_TOKEN: ${{ secrets.GITHUB_TOKEN }}
30         run: |
31           bundle exec danger --verbose --base=${{ github.event.pull_request.base.sha }} --head=${{ github.event.pull_request.head.sha }}