-
Notifications
You must be signed in to change notification settings - Fork 2
37 lines (31 loc) · 1.09 KB
/
sync.yml
File metadata and controls
37 lines (31 loc) · 1.09 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
name: Deploy
on:
push:
branches: ['develop'] # develop 브랜치에 푸시될 때마다 실행
pull_request:
branches: ['develop'] # develop 브랜치로 PR이 머지될 때마다 실행
jobs:
build:
runs-on: ubuntu-latest
container: pandoc/latex
steps:
- name: Checkout repository
uses: actions/checkout@v2
- name: Install mustache (to update the date)
run: apk add ruby && gem install mustache
- name: Create output
run: sh ./build.sh
- name: Push n Merge to another repository
id: push_directory
uses: cpina/github-action-push-to-another-repository@main
env:
API_TOKEN_GITHUB: ${{ secrets.CSH_S }}
with:
source-directory: 'output'
destination-github-username: SeokHoChoi
destination-repository-name: commerce-FE
user-email: ${{ secrets.OFFICIAL_ACCOUNT_EMAIL }}
commit-message: ${{ github.event.commits[0].message }}
target-branch: develop
- name: Test the exported variable
run: echo $DESTINATION_CLONED_DIRECTORY