Skip to content

Commit

Permalink
using ssh now
Browse files Browse the repository at this point in the history
  • Loading branch information
RusabKhan committed Jan 26, 2024
1 parent 417ad66 commit 9278f7f
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion .github/workflows/sync.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 9278f7f

Please sign in to comment.