From 74f3927b0ecd6ce0a0b0f5560687bd734c28e1c5 Mon Sep 17 00:00:00 2001 From: aaminha Date: Wed, 1 May 2024 15:31:08 +0900 Subject: [PATCH] =?UTF-8?q?chore:=20fork=EB=A0=88=ED=8F=AC=20=EB=8F=99?= =?UTF-8?q?=EA=B8=B0=ED=99=94=20yml=20=EC=9E=91=EC=84=B1=20(#10)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/synchronize-repo.yml | 32 ++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 .github/workflows/synchronize-repo.yml diff --git a/.github/workflows/synchronize-repo.yml b/.github/workflows/synchronize-repo.yml new file mode 100644 index 0000000..2173ebd --- /dev/null +++ b/.github/workflows/synchronize-repo.yml @@ -0,0 +1,32 @@ +name: Synchronize to forked repo +on: + push: + branches: + - main + +jobs: + sync: + name: Sync forked repo + runs-on: ubuntu-latest + + steps: + - name: Checkout main + uses: actions/checkout@v4 + with: + token: ${{ secrets.FORKED_REPO_TOKEN }} + fetch-depth: 0 + ref: main + + - name: Add remote-url + run: | + git remote add forked-repo https://AAminha:${{ secrets.FORKED_REPO_TOKEN }}@github.com/AAminha/KUSITMS-29th-TEAM-D-Frontend + git config AAminha + git config dks4857@gmail.com + + - name: Push changes to forked-repo + run: | + git push -f forked-repo main + + - name: Clean up + run: | + git remote remove forked-repo