File tree Expand file tree Collapse file tree 1 file changed +32
-0
lines changed
Expand file tree Collapse file tree 1 file changed +32
-0
lines changed Original file line number Diff line number Diff line change 1+ name : Sync with upstream
2+
3+ on :
4+ workflow_dispatch :
5+
6+ repository_dispatch :
7+ types : [sync_trigger]
8+
9+ jobs :
10+ sync :
11+ runs-on : ubuntu-latest
12+
13+ steps :
14+ - name : Checkout repository
15+ uses : actions/checkout@v4
16+ with :
17+ fetch-depth : 0
18+
19+ - name : Set up Git
20+ run : |
21+ git config user.name "Jayant-Deshmukh"
22+ git config user.email "[email protected] " 23+
24+ - name : Add upstream remote and rebase
25+ run : |
26+ git config --global pull.rebase true
27+ REPO_NAME="${GITHUB_REPOSITORY##*/}" # Extract the repository name from the GitHub repository context
28+ git pull https://github.com/LineageOS/android_${REPO_NAME}.git lineage-22.1
29+
30+ - name : Push rebased changes to origin
31+ run : |
32+ git push origin HEAD:fifteen-los --force-with-lease
You can’t perform that action at this time.
0 commit comments