Skip to content

git pull added

git pull added #12

Workflow file for this run

name: Sync branches between repos
on:
push:
branches:
- actions # Adjust as needed for your branch name
jobs:
sync:
runs-on: ubuntu-latest
steps:
- name: Checkout source repository
uses: actions/checkout@v2
with:
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 400 ~/.ssh/id_rsa
ssh-keyscan github.com >> ~/.ssh/known_hosts
- name: Push changes to target repository
run: |
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 pull
git push target-repo HEAD:actions # Adjust target branch name if needed