forked from LineageOS/android_packages_apps_Updater
-
Notifications
You must be signed in to change notification settings - Fork 0
32 lines (25 loc) · 824 Bytes
/
sync.yml
File metadata and controls
32 lines (25 loc) · 824 Bytes
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
29
30
31
32
name: Sync with upstream
on:
workflow_dispatch:
repository_dispatch:
types: [sync_trigger]
jobs:
sync:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
with:
fetch-depth: 0
- 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 config --global pull.rebase false
REPO_NAME="${GITHUB_REPOSITORY##*/}" # Extract the repository name from the GitHub repository context
git pull https://github.com/LineageOS/android_${REPO_NAME}.git lineage-22.2
- name: Push rebased changes to origin
run: |
git push origin HEAD:fifteen-los