Skip to content

Commit 09e7b40

Browse files
Run Danger from GHA (#5224)
* Run Danger from GHA * Formatting * Fix steps * Formatting * Remove Danger from Travis
1 parent cf6fd9e commit 09e7b40

File tree

2 files changed

+16
-3
lines changed

2 files changed

+16
-3
lines changed

.github/workflows/danger.yml

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
name: danger
2+
3+
on:
4+
pull_request
5+
6+
jobs:
7+
danger:
8+
runs-on: macos-latest
9+
steps:
10+
- uses: actions/checkout@v2
11+
- name: Setup Bundler
12+
run: scripts/setup_bundler.sh
13+
- name: Danger
14+
env:
15+
DANGER_GITHUB_API_TOKEN: ${{ secrets.DangerGitHubAPIToken }}
16+
run: '[ ! -z $DANGER_GITHUB_API_TOKEN ] && bundle exec danger || echo "Skipping Danger for External Contributor"'

.travis.yml

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,6 @@ cache:
1111
stages:
1212
- test
1313

14-
before_script:
15-
- '[ ! -z $DANGER_GITHUB_API_TOKEN ] && bundle exec danger || echo "Skipping Danger for External Contributor"'
16-
1714
jobs:
1815
include:
1916
# The order of builds matters (even though they are run in parallel):

0 commit comments

Comments
 (0)