Skip to content
This repository was archived by the owner on Dec 30, 2025. It is now read-only.

Extract danger reporting infrastructure into reusable workflows and gem #8

Extract danger reporting infrastructure into reusable workflows and gem

Extract danger reporting infrastructure into reusable workflows and gem #8

Workflow file for this run

name: Danger
on:
pull_request:
types: [ opened, reopened, edited, synchronize ]
workflow_call:
jobs:
danger:
name: Danger
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Set up Ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: 2.7
bundler-cache: true
- name: Run Danger
# Note: We use 'dry_run' mode intentionally as part of a two-workflow pattern.
# The actual commenting on GitHub is handled by the danger-comment.yml workflow.
run: bundle exec danger dry_run --verbose
env:
DANGER_REPORT_PATH: danger_report.json
- name: Upload Danger Report
if: always()
uses: actions/upload-artifact@v4
with:
name: danger-report
path: danger_report.json
retention-days: 1
if-no-files-found: ignore