-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
13 additions
and
39 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,21 +1,24 @@ | ||
name: Sync Repositories | ||
name: Sync branches between repos | ||
|
||
on: | ||
push: | ||
branches: | ||
- actions | ||
- actions # Adjust as needed for your branch name | ||
|
||
jobs: | ||
sync: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: Checkout Source Repository | ||
uses: actions/checkout@v2 | ||
- 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: Upload Repository as Artifact | ||
uses: actions/upload-artifact@v2 | ||
with: | ||
name: repository-artifact | ||
path: . # Upload the entire repository | ||
|
||
- name: Push changes to target repository | ||
run: | | ||
git config --global user.email "githubactions[bot]@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 |