Skip to content

Commit 51b6118

Browse files
committed
Fix CI
1 parent 508c45d commit 51b6118

1 file changed

Lines changed: 8 additions & 15 deletions

File tree

.github/workflows/danger.yml

Lines changed: 8 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -7,22 +7,15 @@ on:
77
jobs:
88
danger:
99
name: Run Danger
10-
runs-on: ubuntu-latest
10+
runs-on: macos-latest
1111
steps:
1212
- name: Checkout the Git repository
1313
uses: actions/checkout@v2
1414
with:
15-
fetch-depth: 0
16-
# - name: Cache Gems
17-
# uses: actions/cache@v1
18-
# with:
19-
# path: vendor/bundle
20-
# key: ${{ runner.os }}-danger-${{ env.cache-name }}-gems-${{ hashFiles('**/Gemfile.lock') }}
21-
# restore-keys: |
22-
# ${{ runner.os }}-danger-${{ env.cache-name }}-gems-
23-
# ${{ runner.os }}-danger-${{ env.cache-name }}-
24-
# ${{ runner.os }}-danger-
25-
# - name: Run build script
26-
# run: gem install bundler && bundle install && bundle exec danger --fail-on-errors=true
27-
# env:
28-
# DANGER_GITHUB_API_TOKEN: ${{ secrets.GITHUB_TOKEN }}
15+
fetch-depth: 100
16+
token: ${{ secrets.GITHUB_TOKEN }}
17+
ref: ${{ github.event.pull_request.head.ref }}
18+
- name: Run build script
19+
run: gem install bundler && bundle install && bundle exec danger --fail-on-errors=true
20+
env:
21+
DANGER_GITHUB_API_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)