Skip to content

Commit

Permalink
Test using a single workflow without a reusable one
Browse files Browse the repository at this point in the history
  • Loading branch information
iangmaia committed Dec 22, 2023
1 parent 19cd512 commit 9d3407a
Showing 1 changed file with 31 additions and 4 deletions.
35 changes: 31 additions & 4 deletions .github/workflows/run-danger.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,37 @@ name: ☢️ Danger

on:
pull_request:
types: [opened, synchronize, edited, review_requested, review_request_removed, labeled, unlabeled, milestoned, demilestoned]
types: [opened, edited, review_requested, review_request_removed, labeled, unlabeled, milestoned, demilestoned, synchronize]

concurrency:
group: danger-${{ github.ref }}
cancel-in-progress: true

jobs:
dangermattic:
uses: Automattic/dangermattic/.github/workflows/reusable-run-danger.yml@iangmaia/danger-on-gha
secrets:
github-token: ${{ secrets.DANGERMATTIC_GITHUB_API_TOKEN }}
runs-on: ubuntu-latest
env:
DANGER_GITHUB_API_TOKEN: ${{ secrets.DANGERMATTIC_GITHUB_API_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
# 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 }}

0 comments on commit 9d3407a

Please sign in to comment.