dbex/90990: Prevent EP merges for the disability_compensation_production_tester flag #45555
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] | |
permissions: | |
contents: read | |
pull-requests: write | |
statuses: write | |
jobs: | |
danger: | |
name: Danger | |
env: | |
BUNDLE_ENTERPRISE__CONTRIBSYS__COM: ${{ secrets.BUNDLE_ENTERPRISE__CONTRIBSYS__COM }} | |
DANGER_GITHUB_API_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
runs-on: ubuntu-22.04 | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 | |
- uses: ruby/setup-ruby@v1 | |
with: | |
bundler-cache: true | |
- name: Run Danger | |
run: bundle exec danger --head=${{ github.sha }} --base=${{ github.event.pull_request.base.sha }} --verbose | |
- name: Add Danger Label | |
uses: actions-ecosystem/action-remove-labels@v1 | |
if: ${{ failure() && !contains(github.event.pull_request.labels.*.name, 'danger-alert') }} | |
with: | |
number: ${{ github.event.pull_request.number }} | |
labels: | | |
danger-alert |