GitXplorerGitXplorer
D

rebase-github-action

public
1 stars
2 forks
1 issues

Commits

List of commits on branch not-maintained.
Verified
d43a53eeac471d12fa599bef7b4d2daa3ebc3112

README.md: Add a note that says this repo isn't maintained anymore

DDeeDeeG committed 4 years ago
Verified
e410df87ce5a9774a5a9484697401b9e34f9460b

Create README.md

DDeeDeeG committed 4 years ago
Unverified
e53ec0c0c723606e85105b925a08a970eda1efe9

action.yml: name "Git Rebase" --> "Local Git rebase"

DDeeDeeG committed 4 years ago
Unverified
58c491ca7355199d401726c14474f5c44e979550

entrypoint.bash: Try setting the remore url again

DDeeDeeG committed 4 years ago
Unverified
68e88d95892bf700bbeb25e42f3869dd2b63d472

entrypoint.bash: Initialize an empty git repo

DDeeDeeG committed 4 years ago
Unverified
f4b8e8c22f83bb138a580188c48177297d2573bd

entrypoint.bash: Set executable permission

DDeeDeeG committed 4 years ago

README

The README file for this repository.

THIS GITHUB ACTION IS NOT MAINTAINED ANYMORE.

See https://github.com/DeeDeeG/rebase-github-action/issues/2.

Local Git Rebase

This task rebases a local branch onto another local branch or ref, all within the current GitHub repository.

Use this task to automate rebases within your own GitHub repository. Useful for floating ongoing work on top of an existing long-running branch or tag. (Such as when maintaining a fork.) For rebasing on top of a branch from another repository, considering triggering this task against a branch managed by an automated pull utility, such as this one from the Probot community: https://probot.github.io/apps/pull/)

Usage (example workflow):

name: Example Rebase
on:
  push:
    branches:
      # All pushes to this branch will trigger the task.
      - my-rebase-upstream-branch
    tags:
      # All pushes to this tag will trigger the task.
      - my-rebase-upstream-tag

jobs:
  rebase_branches:
    runs-on: ubuntu-latest
    steps:
      - name: Rebase head_branch on base_ref
        # Recommended: specify a version such as `@v1.0` rather than `@main`
        uses: DeeDeeG/rebase-github-action@main
        with:
          # Head branch, which will be rebased onto the base_ref.
          head_branch: my-rebase-head-breanch
          # Branch, or Git ref, that the head_branch will be rebased onto.
          base_ref: my-rebase-upstream-ref-or-branch

Requirements

  • base_ref must be a valid ref according to the folowing Git command:

    • git check-ref-format --allow-onelevel --normalize "${base_ref}"
  • base_ref must be an existing ref or branch at your GitHub repository.

  • head_branch must be an existing branch at your GitHub repository.

Acknlowledgements

This Action is based heavily on https://github.com/actions-registry/github-repo-sync-upstream and somewhat on https://github.com/everlytic/branch-merge. Their license notices can be viewed here: https://github.com/DeeDeeG/rebase-github-action/tree/main/UPSTREAM_LICENSE_NOTICES