Skip to content

Commit a589c8f

Browse files
committed
Avoid running bundle install twice.
1 parent 0f21bf0 commit a589c8f

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

.github/workflows/danger.yml

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,20 +4,19 @@ on: [pull_request]
44
jobs:
55
danger:
66
runs-on: ubuntu-latest
7+
env:
8+
BUNDLE_GEMFILE: Gemfile.danger
79
steps:
810
- uses: actions/checkout@v2
911
with:
1012
fetch-depth: 0
1113
- name: Set up Ruby
1214
uses: ruby/setup-ruby@v1
1315
with:
14-
ruby-version: 2.6
16+
ruby-version: 2.7
1517
bundler-cache: true
1618
- name: Run Danger
17-
env:
18-
BUNDLE_GEMFILE: Gemfile.danger
1919
run: |
20-
bundle install
2120
# the personal token is public, this is ok, base64 encode to avoid tripping Github
2221
TOKEN=$(echo -n Z2hwX0xNQ3VmanBFeTBvYkZVTWh6NVNqVFFBOEUxU25abzBqRUVuaAo= | base64 --decode)
2322
DANGER_GITHUB_API_TOKEN=$TOKEN bundle exec danger --verbose

0 commit comments

Comments
 (0)