fix(ActiveRecord): correctly connect to database in Rails 7.2+ #87
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- | |
name: danger | |
on: [pull_request] | |
jobs: | |
danger: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
with: | |
fetch-depth: 0 | |
- name: Set up Ruby | |
uses: ruby/setup-ruby@v1 | |
with: | |
ruby-version: 2.6 | |
bundler-cache: true | |
- name: Run Danger | |
env: | |
BUNDLE_GEMFILE: Gemfile.danger | |
run: | | |
bundle install | |
# the personal token is public, this is ok, base64 encode to avoid tripping Github | |
TOKEN=$(echo -n Z2hwX0xNQ3VmanBFeTBvYkZVTWh6NVNqVFFBOEUxU25abzBqRUVuaAo= | base64 --decode) | |
DANGER_GITHUB_API_TOKEN=$TOKEN bundle exec danger --verbose |