47 lines
843 B
Markdown
47 lines
843 B
Markdown
# Auto rebase
|
|
|
|
An auto-rebase action that automatically determines dependencies.
|
|
|
|
## Usage
|
|
|
|
Defaults:
|
|
```
|
|
branchesToIgnore: "dev,main,master"
|
|
mainBranch: "dev"
|
|
```
|
|
|
|
Simple workflow:
|
|
```yaml
|
|
name: Rebase Remote Branches
|
|
|
|
on:
|
|
push:
|
|
branches:
|
|
- dev
|
|
|
|
# Disable multiple workflows at the same time
|
|
concurrency:
|
|
group: ${{ github.head_ref || github.ref_name }}
|
|
|
|
jobs:
|
|
rebase-branches:
|
|
runs-on: skydust-runner
|
|
steps:
|
|
- name: Checkout repository
|
|
uses: actions/checkout@v4
|
|
with:
|
|
fetch-depth: 0
|
|
- name: Rebase
|
|
uses: https://gitea.skydust.fr/actions/auto-rebase@main
|
|
with:
|
|
branchesToIgnore: "dev,master"
|
|
mainBranch: "dev"
|
|
```
|
|
|
|
## Dev
|
|
|
|
Simply run: `yarn install`
|
|
And run the script locally with: `yarn dev`
|
|
|
|
When committing, husky will automatically build.
|