Skip to content

Fork of the `cirrus-actions/rebase` repo for rebasing a PR

Notifications You must be signed in to change notification settings

nulogy/rebase-action

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 

Repository files navigation

Nulogy Rebase GitHub Action

Fork of the cirrus-actions/rebase repo for rebasing a PR

Example Usage

Add the following setup code to .github/workflows/rebase.yml.

name: Rebase

on:
  issue_comment:
    types: [created]

jobs:
  rebase:
    name: Rebase
    if: github.event.issue.pull_request != '' && contains(github.event.comment.body, '/rebase')
    runs-on: ubuntu-latest
    steps:
      - uses: actions/[email protected]
      - uses: nulogy/rebase-action@master
        env:
          GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
  always_job:
    name: Aways run job
    runs-on: ubuntu-latest
    steps:
      - name: Always run
        run: echo "This job is used to prevent the workflow to fail when all other jobs are skipped."

Then on a PR, type /rebase into the comments section.

This will fail if the HEAD branch is not rebaseable on top of the BASE branch of the PR.

About

Fork of the `cirrus-actions/rebase` repo for rebasing a PR

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published