Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Synchronize to forked repo
name: Synchronize the develop branch to forked repo
on:
push:
branches:
Expand Down
31 changes: 31 additions & 0 deletions .github/workflows/sync-main.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
name: Synchronize the main branch to forked repo
on:
push:
branches:
- main
jobs:
sync:
name: Sync forked repo
runs-on: ubuntu-latest

steps:
- name: Checkout main
uses: actions/checkout@v4
with:
token: ${{ secrets.AUTO_ACTIONS }}
fetch-depth: 0
ref: main

- name: Add remote-url
run: |
git remote add forked-repo https://cskime:${{ secrets.AUTO_ACTIONS }}@github.com/cskime/rolling
git config user.name cskime
git config user.email ${{ secrets.EMAIL }}

- name: Push changes to forked-repo
run: |
git push -f forked-repo main

- name: Clean up
run: |
git remote remove forked-repo