Skip to content

gha-auto-dependabot-rebase

Actions
Github Action to automatically request dependabot rebases
v1.5.76
Latest
Star (12)

Build, Test & Publish Main

gha-auto-dependabot-rebase

Github Action to automatically request dependabot rebases

Details

This is a single workflow step to request a rebase from dependabot. Add the workflow to run when commits are pushed to your main branch, and it will request dependabot to rebase any PRs it currently has open. No options are required, but if you would rather dependabot recreate the PR rather than rebase it, you may pass in the task input with the value set to recreate.

Required Environment Variables

  • GITHUB_TOKEN - this must have permission to leave a comment on a PR

Example Workflow

name: rebase pull requests
on:
  push:
  release:
    types: [published]
jobs:
  auto-rebase:
    name: rebase dependabot PRs
    runs-on: ubuntu-latest
    if: github.ref == 'refs/heads/main' || github.event == 'release'
    timeout-minutes: 5
    steps:
      - name: rebase
        uses: "bbeesley/gha-auto-dependabot-rebase@main"
        env:
          GITHUB_TOKEN: ${{ secrets.GH_PA_TOKEN }}
        with:
          task: rebase

gha-auto-dependabot-rebase is not certified by GitHub. It is provided by a third-party and is governed by separate terms of service, privacy policy, and support documentation.

About

Github Action to automatically request dependabot rebases
v1.5.76
Latest

gha-auto-dependabot-rebase is not certified by GitHub. It is provided by a third-party and is governed by separate terms of service, privacy policy, and support documentation.