[DRAFT] Add question and answer flag to V2 API #1937
This file contains hidden or 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: [push, pull_request] | |
| jobs: | |
| danger: | |
| runs-on: ubuntu-24.04 | |
| steps: | |
| - uses: actions/checkout@v3 | |
| - name: 'Determine Ruby and Bundler Versions from Gemfile.lock' | |
| run: | | |
| echo "RUBY_VERSION=`cat ./Gemfile.lock | grep -A 1 'RUBY VERSION' | grep 'ruby' | grep -oE '[0-9]+\.[0-9]+\.[0-9]+'`" >> $GITHUB_ENV | |
| echo "BUNDLER_VERSION=`cat ./Gemfile.lock | grep -A 1 'BUNDLED WITH' | grep -oE '[0-9]+\.[0-9]+\.[0-9]+'`" >> $GITHUB_ENV | |
| # Install Ruby - using the version found in the Gemfile.lock | |
| - name: 'Install Ruby' | |
| uses: ruby/setup-ruby@v1 | |
| - name: 'Bundle Install' | |
| run: | | |
| gem install bundler -v ${{ env.BUNDLER_VERSION }} | |
| bundle config path vendor/bundle | |
| bundle install --jobs 4 --retry 3 --without pgsql rollbar aws | |
| - name: 'Run Danger' | |
| env: | |
| DANGER_GITHUB_API_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
| run: bundle exec danger |