-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Deploy dev branch to other repo for pages
- Loading branch information
1 parent
8c11025
commit 5285c72
Showing
1 changed file
with
24 additions
and
0 deletions.
There are no files selected for viewing
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 |
---|---|---|
@@ -0,0 +1,24 @@ | ||
name: Push Branch to Another Repo | ||
|
||
on: | ||
push: | ||
branches: | ||
- develop # You can modify this to the branch you want to trigger the action | ||
|
||
jobs: | ||
push-to-repo: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: Checkout the source repository | ||
uses: actions/checkout@v2 | ||
|
||
- name: Add the destination repository | ||
run: | | ||
git remote add target https://github.com/AH-64D-Apache-Official-Project/docs-dev.git | ||
git fetch target | ||
- name: Push branch to the destination repository | ||
run: | | ||
git push target develop | ||