Skip to content

[Tooling] Move Danger to GitHub Actions #4

[Tooling] Move Danger to GitHub Actions

[Tooling] Move Danger to GitHub Actions #4

Workflow file for this run

name: ☢️ Danger
on:
pull_request:
types: [opened, edited, review_requested, review_request_removed, labeled, unlabeled, milestoned, demilestoned, synchronize]
concurrency:
group: danger-${{ github.ref }}
cancel-in-progress: true
jobs:
dangermattic:
runs-on: ubuntu-latest
env:
DANGER_GITHUB_API_TOKEN: ${{ secrets.GITHUB_TOKEN }}
steps:
- name: "📥 Checkout Repo"
uses: actions/checkout@v4
- name: "💎 Ruby Setup"
uses: ruby/setup-ruby@v1
with:
bundler-cache: true
- name: "☢️ Danger PR Check"
run: |
echo "--- 🏃 Running Danger: PR Check"
bundle exec danger --fail-on-errors=true --remove-previous-comments --danger_id=pr-check
# name: ☢️ Danger
# on:
# pull_request:
# types: [opened, synchronize, edited, review_requested, review_request_removed, labeled, unlabeled, milestoned, demilestoned]
# jobs:
# dangermattic:
# uses: Automattic/dangermattic/.github/workflows/reusable-run-danger.yml@iangmaia/danger-on-gha
# secrets:
# github-token: ${{ secrets.DANGERMATTIC_GITHUB_API_TOKEN }}