Skip to content
You're viewing an older version of this GitHub Action. Do you want to see the latest version instead?
box

GitHub Action

gha-auto-dependabot-rebase

v1.1.0

gha-auto-dependabot-rebase

box

gha-auto-dependabot-rebase

Github Action to automatically request dependabot rebases

Installation

Copy and paste the following snippet into your .yml file.

              

- name: gha-auto-dependabot-rebase

uses: bbeesley/gha-auto-dependabot-rebase@v1.1.0

Learn more about this action in bbeesley/gha-auto-dependabot-rebase

Choose a version

test-and-publish

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.

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'
    timeout-minutes: 5
    steps:
      - name: rebase
        uses: "bbeesley/gha-auto-dependabot-rebase@main"
        env:
          GITHUB_TOKEN: ${{ secrets.GH_PA_TOKEN }}