Skip to content

Commit

Permalink
CI/CD
Browse files Browse the repository at this point in the history
  • Loading branch information
ocahs9 committed Nov 24, 2024
1 parent 8c07e30 commit 7d5230f
Showing 1 changed file with 32 additions and 0 deletions.
32 changes: 32 additions & 0 deletions .github/workflows/autoDeploy.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
name: Synchronize to forked repo
on:
push:
branches:
- develop

jobs:
sync:
name: Sync forked repo
runs-on: ubuntu-latest

steps:
- name: Checkout develop
uses: actions/checkout@v4
with:
token: ${{ secrets.FORKED_REPO_TOKEN }}
fetch-depth: 0
ref: develop

- name: Add remote-url
run: |
git remote add forked-repo https://ocahs9:${{ secrets.FORKED_REPO_TOKEN }}@github.com/ocahs9/Ogoo-WEB-CLIENT
git config user.name ocahs9
git config user.email ${{ secrets.EMAIL }}
- name: Push changes to forked-repo
run: |
git push -f forked-repo develop
- name: Clean up
run: |
git remote remove forked-repo

0 comments on commit 7d5230f

Please sign in to comment.