-
Notifications
You must be signed in to change notification settings - Fork 1
66 lines (54 loc) · 1.76 KB
/
Copy pathdeploy.yml
File metadata and controls
66 lines (54 loc) · 1.76 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
# name: Sync to Forked Repo & Deploy to Vercel
# on:
# push:
# branches: [main]
# pull_request:
# branches: [main]
# jobs:
# sync:
# runs-on: ubuntu-latest
# steps:
# - name: Checkout source repo
# uses: actions/checkout@v3
# - name: Set Git identity
# run: |
# git config --global user.name "${{ secrets.NAME }}"
# git config --global user.email "${{ secrets.EMAIL }}"
# - name: Clone forked repo
# run: |
# git clone https://x-access-token:${{ secrets.ACCESS_TOKEN }}@github.com/YerinDoi/Kkinicong.git out-repo
# rsync -av --exclude='.git' ./ out-repo/
# - name: Commit & push
# run: |
# cd out-repo
# git add .
# git commit -m "🔄 Auto sync from org repo" || echo "No changes to commit"
# git push origin main
name: Sync to Forked Repo & Deploy to Vercel
on:
push:
branches: [main]
pull_request:
branches: [main]
jobs:
sync:
runs-on: ubuntu-latest
steps:
- name: Checkout source repo
uses: actions/checkout@v3
- name: Set Git identity
run: |
git config --global user.name "${{ secrets.NAME }}"
git config --global user.email "${{ secrets.EMAIL }}"
- name: Clone forked repo
if: github.repository == 'Heroineeee/FE'
run: |
git clone https://x-access-token:${{ secrets.YERIN_PTA }}@github.com/YerinDoi/Kkinicong.git out-repo
rsync -av --exclude='.git' ./ out-repo/
- name: Commit & push
if: github.repository == 'Heroineeee/FE'
run: |
cd out-repo
git add .
git commit -m "🔄 Auto sync from org repo" || echo "No changes to commit"
git push origin main