Attempt to get danger working as a CI workflow

References #5267
This commit is contained in:
Tom Hughes 2024-10-17 18:41:05 +01:00
parent 3b6518852b
commit 6d0c291332

View file

@ -6,12 +6,17 @@ on:
pull_request_target:
types: [opened, synchronize]
permissions:
issues: 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:
@ -20,6 +25,6 @@ jobs:
bundler-cache: true
- name: Danger
env:
DANGER_GITHUB_API_TOKEN: ${{ secrets.GITHUB_TOKEN }}
DANGER_GITHUB_BEARER_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
bundle exec danger --verbose