From 9278f7f19117810df81cf611023a129ec7187fe1 Mon Sep 17 00:00:00 2001 From: Rusab Khan Date: Fri, 26 Jan 2024 23:42:06 +0500 Subject: [PATCH] using ssh now --- .github/workflows/sync.yml | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/.github/workflows/sync.yml b/.github/workflows/sync.yml index 0279645..efeb896 100644 --- a/.github/workflows/sync.yml +++ b/.github/workflows/sync.yml @@ -16,9 +16,16 @@ jobs: repository: RusabKhan/OpenETL ref: ${{ github.ref }} # Use the same branch or tag that triggered the workflow + - name: Configure SSH + run: | + mkdir -p ~/.ssh + echo "${{ secrets.PRIVATE_SSH_KEY }}" > ~/.ssh/id_rsa + chmod 600 ~/.ssh/id_rsa + ssh-keyscan github.com >> ~/.ssh/known_hosts + - name: Push changes to target repository run: | - git config --global user.email "githubactions[bot]@github.com" + git config --global user.email "github-actions[bot]@users.noreply.github.com" git config --global user.name "Github Actions Bot" git remote add target-repo git@github.com:RusabKhan/OpenETL-Pro.git git push target-repo HEAD:actions # Adjust target branch name if needed