Skip to content

Commit be2e2a3

Browse files
committed
infra: add github action for auto-syncing to personal mirror
1 parent 2c822e8 commit be2e2a3

File tree

1 file changed

+20
-0
lines changed

1 file changed

+20
-0
lines changed
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
name: Mirror to Personal Fork
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
8+
jobs:
9+
mirror:
10+
runs-on: ubuntu-latest
11+
steps:
12+
- name: Checkout Org Repo
13+
uses: actions/checkout@v4
14+
with:
15+
fetch-depth: 0
16+
17+
- name: Push to Personal Fork
18+
run: |
19+
git remote add personal https://x-access-token:${{ secrets.PERSONAL_ACCESS_TOKEN }}@github.com/${{ github.repository_owner }}/payrail.git
20+
git push personal main --force

0 commit comments

Comments
 (0)