GHA Workflow for Running Danger #39
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: ☢️ Danger on GHA | |
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 on GHA" | |
run: | | |
echo "--- 🏃 Running Danger: PR Check" | |
bundle exec danger --fail-on-errors=true --remove-previous-comments --danger_id=pr-check | |