danger.yml 594 B

12345678910111213141516171819202122232425
  1. name: Danger
  2. on:
  3. pull_request:
  4. types: [opened, synchronize, edited]
  5. branches:
  6. - stable
  7. jobs:
  8. Danger:
  9. runs-on: ubuntu-18.04
  10. steps:
  11. - uses: actions/checkout@v1
  12. - uses: ruby/setup-ruby@v1
  13. with:
  14. ruby-version: 2.6 # Not needed with a .ruby-version file
  15. bundler-cache: true # runs 'bundle install' and caches installed gems automatically
  16. - name: Danger
  17. run: |
  18. bundle exec danger --fail-on-errors=true
  19. shell: bash
  20. env:
  21. DANGER_GITHUB_API_TOKEN: ${{ secrets.BOT_ACCESS_TOKEN }}