name: Gem Compare

on:
  pull_request:
    types:
      - opened
      - reopened
    branches:
      - 'dependabot/bundler/**'

jobs:
  compare:
    runs-on: ubuntu-latest
    steps:
      - uses: dentarg/gem-compare@main
        with:
          github-token: ${{ secrets.GITHUB_TOKEN }}

name: Gem Compare

on:
  pull_request:
    types:
      - opened
      - reopened

jobs:
  compare:
    if: startsWith(github.head_ref, 'dependabot/bundler/')
    runs-on: ubuntu-latest
    steps:
      - uses: dentarg/gem-compare@main
        with:
          github-token: ${{ secrets.GITHUB_TOKEN }}

Fix Gem Compare workflow trigger
Fix Gem Compare workflow trigger

It's tricky with the events and refs and heads.

https://docs.github.com/en/actions/using-workflows/events-that-trigger-workflows#running-your-workflow-based-on-the-head-or-base-branch-of-a-pull-request
