-
Notifications
You must be signed in to change notification settings - Fork 19
36 lines (34 loc) · 1.06 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
name: Sync fork
on:
workflow_dispatch:
push:
branches:
- main
- develop
jobs:
sync:
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
ref: ${{ github.event_name == 'workflow_run' || github.head_ref || github.ref_name }}
- uses: webfactory/ssh-agent@v0.9.0
with:
ssh-private-key: ${{ secrets.FORK_KEY }}
- name: Push to Lutra Labs org fork repo
env:
USE_SSH: true
run: |
git remote add fork git@github.com:lutralabs/swaylend-monorepo.git
git config --global user.email "info@lutralabs.io"
git config --global user.name "Lutra Labs Bot"
git push fork --force
- name: Push to Lutra Labs Bot fork repo
env:
USE_SSH: true
run: |
git remote add bot-fork git@github.com:lutralabs-bot/swaylend-monorepo.git
git config --global user.email "info@lutralabs.io"
git config --global user.name "Lutra Labs Bot"
git push bot-fork --force