File tree Expand file tree Collapse file tree 2 files changed +32
-1
lines changed Expand file tree Collapse file tree 2 files changed +32
-1
lines changed Original file line number Diff line number Diff line change 1- name : Synchronize to forked repo
1+ name : Synchronize the develop branch to forked repo
22on :
33 push :
44 branches :
Original file line number Diff line number Diff line change 1+ name : Synchronize the main branch to forked repo
2+ on :
3+ push :
4+ branches :
5+ - main
6+ jobs :
7+ sync :
8+ name : Sync forked repo
9+ runs-on : ubuntu-latest
10+
11+ steps :
12+ - name : Checkout main
13+ uses : actions/checkout@v4
14+ with :
15+ token : ${{ secrets.AUTO_ACTIONS }}
16+ fetch-depth : 0
17+ ref : main
18+
19+ - name : Add remote-url
20+ run : |
21+ git remote add forked-repo https://cskime:${{ secrets.AUTO_ACTIONS }}@github.com/cskime/rolling
22+ git config user.name cskime
23+ git config user.email ${{ secrets.EMAIL }}
24+
25+ - name : Push changes to forked-repo
26+ run : |
27+ git push -f forked-repo main
28+
29+ - name : Clean up
30+ run : |
31+ git remote remove forked-repo
You can’t perform that action at this time.
0 commit comments