Skip to content

Commit

Permalink
ci: add sync fork
Browse files Browse the repository at this point in the history
Signed-off-by: Urban Vidovič <[email protected]>
  • Loading branch information
pseudobun committed Aug 7, 2024
1 parent 0a96ccb commit 0b775ea
Showing 1 changed file with 28 additions and 0 deletions.
28 changes: 28 additions & 0 deletions .github/workflows/sync.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
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/[email protected]
with:
ssh-private-key: ${{ secrets.FORK_KEY }}
- name: Push to fork repo
env:
USE_SSH: true
run: |
git remote add fork [email protected]:lutralabs/swaylend-monorepo.git
git config --global user.email "[email protected]"
git config --global user.name "lutralabs-bot"
git push fork --force

0 comments on commit 0b775ea

Please sign in to comment.