From 0b775eaf1f1e0d8c8d32767214cc27a19b3d6b15 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Urban=20Vidovic=CC=8C?= Date: Wed, 7 Aug 2024 14:40:29 +0200 Subject: [PATCH] ci: add sync fork MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Urban Vidovič --- .github/workflows/sync.yml | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 .github/workflows/sync.yml diff --git a/.github/workflows/sync.yml b/.github/workflows/sync.yml new file mode 100644 index 00000000..ace667bd --- /dev/null +++ b/.github/workflows/sync.yml @@ -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/ssh-agent@v0.9.0 + with: + ssh-private-key: ${{ secrets.FORK_KEY }} + - name: Push to 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 "lutralabs-bot" + git push fork --force \ No newline at end of file