Skip to content

sync_trigger

sync_trigger #2

Workflow file for this run

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 "[email protected]"
- 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.1
- name: Push rebased changes to origin
run: |
git push origin HEAD:fifteen-los