Skip to content

Commit

Permalink
old sync
Browse files Browse the repository at this point in the history
  • Loading branch information
RusabKhan committed Jan 26, 2024
1 parent a2ca45d commit f66323b
Showing 1 changed file with 19 additions and 24 deletions.
43 changes: 19 additions & 24 deletions .github/workflows/sync.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,30 +6,25 @@ on:
- actions

jobs:
repo-sync:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: repo-sync
uses: repo-sync/github-sync@v2
with:
source_repo: "https://github.com/RusabKhan/OpenETL.git"
source_branch: "actions"
destination_branch: "actions"
github_token: ${{ secrets.WORKSPACE }}
sync:
runs-on: ubuntu-latest

steps:
- name: Check out OpenETL Pro repository
uses: actions/checkout@v2
with:
repository: RusabKhan/OpenETL-Pro
path: OpenETL-Pro

# - name: Copy changes from OpenETL to OpenETL Pro
# run: |
# cp -R ./* OpenETL-Pro/
- name: Push changes to develop branch of OpenETL Pro
run: |
cd OpenETL-Pro
git config --global user.email "[email protected]"
git config --global user.name "Rusab Khan"
git checkout develop
git pull origin develop
cp -R ../. .
# working-directory: ${{ github.workspace }}/OpenETL

# - name: Push changes to develop branch of OpenETL Pro
# run: |
# cd OpenETL-Pro
# git config --global user.email "41898282+github-actions[bot]@users.noreply.github.com"
# git config --global user.name "GitHub Actions Bot"
# git add .
# git commit -m "Sync changes from main branch of OpenETL"
# git push origin develop
git add .
git commit -m "Sync changes from main branch of OpenETL"
git push origin develop

0 comments on commit f66323b

Please sign in to comment.