name: Auto-merge Dependabot PRs
on:
  schedule:
    - cron: "0 * * * *"
jobs:
  auto_merge:
    if: (github.event_name == 'schedule' && github.repository == 'starship/starship') || (github.event_name != 'schedule')
    name: Auto-merge Dependabot PRs
    runs-on: ubuntu-latest
    steps:
      - uses: akheron/dependabot-cron-action@d020867c009553e279f0200b621459444828a9b0
        with:
          token: ${{ secrets.DEPENDABOT_GITHUB_API_TOKEN }}
          auto-merge: "minor"
          merge-method: "squash"
