Skip to content

Fetch upstream and rebase #11933

Fetch upstream and rebase

Fetch upstream and rebase #11933

name: Fetch upstream and rebase
on:
schedule:
- cron: "0 */2 * * *" # run every 2 hour
workflow_dispatch: # run manually
jobs:
sync:
runs-on: ubuntu-20.04
steps:
- name: Checkout Repo
uses: actions/checkout@v2
with:
fetch-depth: 0
token: ${{ secrets.FETCH_REBASE_TOKEN }}
- name: Fetch, rebase and push
shell: bash
run: |
set -ex;
git config user.email [email protected]
git config user.name github-actions
git remote add upstream https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
git fetch -t upstream master
git rebase upstream/master
git push -fv --follow-tags origin HEAD:master