Skip to content

Commit

Permalink
Add dangermattic GHA triggering danger Buildkite pipeline
Browse files Browse the repository at this point in the history
  • Loading branch information
iangmaia committed Dec 5, 2023
1 parent 36fa963 commit a2012ed
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 0 deletions.
1 change: 1 addition & 0 deletions .buildkite/pipeline.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ steps:
- wait

- label: "☢️ Danger - PR Check"
key: "danger"
command: .buildkite/commands/danger-pr-check.sh
plugins:
- docker#v5.8.0:
Expand Down
17 changes: 17 additions & 0 deletions .github/workflows/dangermattic.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
name: Danger on GitHub PR events

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

jobs:
dangermattic:
runs-on: ubuntu-latest
steps:
- name: "☢️ Danger - PR Check"
uses: "buildkite/[email protected]"
with:
buildkite_api_access_token: ${{ secrets.TRIGGER_BK_BUILD_TOKEN }}
pipeline: "automattic/woocommerce-android"
branch: "${{ github.head_ref }}"
build_env_vars: '{"PIPELINE": "danger.yml", "BUILDKITE_PULL_REQUEST": "${{ github.event.issue.number }}", "BUILDKITE_PULL_REQUEST_REPO": "${{ github.repositoryUrl }}", "BUILDKITE_PULL_REQUEST_BASE_BRANCH": "${{ github.base_ref }}"}'

0 comments on commit a2012ed

Please sign in to comment.