From aa975842e23e5693febe328a47e391cede055dc8 Mon Sep 17 00:00:00 2001 From: Jayant-Deshmukh Date: Sat, 4 Jan 2025 12:23:11 +0530 Subject: [PATCH] test Signed-off-by: Jayant-Deshmukh --- .github/workflows/sync.yml | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 .github/workflows/sync.yml diff --git a/.github/workflows/sync.yml b/.github/workflows/sync.yml new file mode 100644 index 0000000000..0826cc280e --- /dev/null +++ b/.github/workflows/sync.yml @@ -0,0 +1,30 @@ +name: Sync with upstream + +on: + schedule: + - cron: '0 * * * *' # Runs every hour + workflow_dispatch: # Allows manual trigger + +jobs: + sync: + runs-on: ubuntu-latest + + steps: + - name: Checkout repository + uses: actions/checkout@v3 + + - name: Set up Git + run: | + git config user.name "Jayant-Deshmukh" + git config user.email "jayantdeshmuk008@gmail.com" + + - name: Add upstream remote and rebase + run: | + git remote add lineage https://github.com/LineageOS/android_vendor_lineage.git + git fetch lineage + git checkout fifteen-los + git rebase lineage/lineage-22.1 + + - name: Push rebased changes to origin + run: | + git push origin HEAD:fifteen-los --force-with-lease