Lesmiscore (The Hatsune Daishi) 0fc3f43e9c Update action.yml | 3 years ago | |
---|---|---|
.github | 3 years ago | |
LICENSE | 3 years ago | |
Readme.md | 3 years ago | |
action.yml | 3 years ago |
This Action is suitable if you:
Basically this is doing git rebase upstream master && git push -f
. If there are conflicts, it simply fails.
# .github/workflows/sync.yml
name: Rebase Upstream
on:
schedule:
- cron: "0 0 * * 0" # run once a week
workflow_dispach: # run manually
jobs:
sync:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@master
with:
fetch-depth: 10 # greater than the number of commits you made
- uses: imba-tjd/rebase-upstream-action@master
# with: # all args are optional
# upstream: <user>/<repo>
# branch: master
git rebase
on GitHub websitegit_pull_rebase_config: true
, it's similar. But it tries to be configurable so that looks complex