forked from LineageOS/android_packages_apps_Settings
-
Notifications
You must be signed in to change notification settings - Fork 0
28 lines (26 loc) · 852 Bytes
/
main.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
name: Rebase
on:
schedule:
- cron: '58 23 * * *'
jobs:
build:
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/droid-legacy/android_packages_apps_Settings.git -b lineage-19.1
cd android_packages_apps_Settings
git fetch https://github.com/LineageOS/android_packages_apps_Settings.git lineage-19.1
git rebase FETCH_HEAD
git push -f
env:
GITHUB_EMAIL: ${{ secrets.EMAIL }}
GITHUB_TOKEN: ${{ secrets.TOKEN }}
GITHUB_USER: ${{ secrets.USERNAME }}