name: Danger run-name: Updating labels for current PR on: pull_request_target: types: [opened, synchronize] permissions: pull-requests: write statuses: write jobs: danger: runs-on: ubuntu-22.04 steps: - name: Check out code uses: actions/checkout@v4 with: fetch-depth: 0 - name: Setup ruby uses: ruby/setup-ruby@v1 with: ruby-version: 3.1 rubygems: 3.4.10 bundler-cache: true - name: Danger env: DANGER_GITHUB_BEARER_TOKEN: ${{ secrets.GITHUB_TOKEN }} run: | bundle exec danger --verbose --base=${{ github.event.pull_request.base.sha }} --head=${{ github.event.pull_request.head.sha }}