forked from depromeet/layer
-
Notifications
You must be signed in to change notification settings - Fork 0
35 lines (30 loc) · 861 Bytes
/
Copy pathworkflow-dev.yml
File metadata and controls
35 lines (30 loc) · 861 Bytes
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
name: Synchronize to forked repo
on:
push:
branches:
- develop
- lab
paths:
- apps/web/**
jobs:
sync:
name: Sync forked repo
runs-on: ubuntu-latest
steps:
- name: Checkout develop
uses: actions/checkout@v4
with:
token: ${{ secrets.FORKED_REPO_TOKEN_DEV }}
fetch-depth: 0
ref: ${{ github.ref_name }}
- name: Add remote-url
run: |
git remote add forked-repo https://test0001124:${{ secrets.FORKED_REPO_TOKEN_DEV }}@github.com/test0001124/layer-dev
git config user.name test0001124
git config user.email klmhyeonwoo@likelion.org
- name: Push changes to forked-repo
run: |
git push -f forked-repo ${{ github.ref_name }}
- name: Clean up
run: |
git remote remove forked-repo