Skip to content

Rebase

Rebase #2

Workflow file for this run

name: Rebase
on:
workflow_dispatch:
schedule:
- cron: '0 0 * * *'
jobs:
build:
strategy:
matrix:
branch: [lineage-21.0]
name: Automatic rebase
runs-on: ubuntu-20.04
steps:
- name: Install dependencies
run: |
sudo apt-get update
sudo apt-get install git
- name: Rebase
run: |
git config --global user.name "${GITHUB_USER}"
git config --global user.email "${GITHUB_EMAIL}"
git clone https://"${GITHUB_USER}":"${GITHUB_TOKEN}"@github.com/a57y17lte-dev/android_frameworks_base.git -b ${{ matrix.branch }}
cd android_frameworks_base
git fetch https://github.com/LineageOS/android_frameworks_base.git ${{ matrix.branch }}
git rebase FETCH_HEAD
git push -f
env:
GITHUB_EMAIL: ${{ secrets.EMAIL }}
GITHUB_TOKEN: ${{ secrets.TOKEN }}
GITHUB_USER: ${{ secrets.USERNAME }}