-
Notifications
You must be signed in to change notification settings - Fork 20
38 lines (34 loc) · 1.38 KB
/
sync.yml
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
name: Sync
on:
# Triggers the workflow on push or pull request events but only for the main branch
push:
branches: [master]
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
jobs:
private-to-public:
if: ${{ github.repository == 'lyra-finance/interface-private' }}
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
with:
token: ${{ secrets.GH_PERSONAL_ACCESS_TOKEN }}
fetch-depth: 0
- run: |
git config --global user.email "${GITHUB_ACTOR}"
git config --global user.name "${GITHUB_ACTOR}@users.noreply.github.com"
git remote add interface "https://lyra-finance:${GH_PERSONAL_ACCESS_TOKEN}@github.com/lyra-finance/interface.git"
git push --set-upstream interface master
public-to-private:
if: ${{ github.repository == 'lyra-finance/interface' }}
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
with:
token: ${{ secrets.GH_PERSONAL_ACCESS_TOKEN }}
fetch-depth: 0
- run: |
git config --global user.email "dappbeast"
git config --global user.name "[email protected]"
git remote add interface-private "https://lyra-finance:${GH_PERSONAL_ACCESS_TOKEN}@github.com/lyra-finance/interface-private.git"
git push --set-upstream interface-private master