From c956034aeb1d5d53181300c0fb34cb2e5a51bcb7 Mon Sep 17 00:00:00 2001 From: Chamsol Kim Date: Mon, 25 Aug 2025 00:07:01 +0900 Subject: [PATCH 1/2] =?UTF-8?q?config=20[#99]=20`main`=20branch=EC=9D=98?= =?UTF-8?q?=20sync=20workflow=20=EC=B6=94=EA=B0=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../{sync.yaml => sync-develop.yaml} | 0 .github/workflows/sync-main.yaml | 31 +++++++++++++++++++ 2 files changed, 31 insertions(+) rename .github/workflows/{sync.yaml => sync-develop.yaml} (100%) create mode 100644 .github/workflows/sync-main.yaml diff --git a/.github/workflows/sync.yaml b/.github/workflows/sync-develop.yaml similarity index 100% rename from .github/workflows/sync.yaml rename to .github/workflows/sync-develop.yaml diff --git a/.github/workflows/sync-main.yaml b/.github/workflows/sync-main.yaml new file mode 100644 index 0000000..5436478 --- /dev/null +++ b/.github/workflows/sync-main.yaml @@ -0,0 +1,31 @@ +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.AUTO_ACTIONS }} + fetch-depth: 0 + ref: main + + - name: Add remote-url + run: | + git remote add forked-repo https://cskime:${{ secrets.AUTO_ACTIONS }}@github.com/cskime/rolling + git config user.name cskime + git config user.email ${{ secrets.EMAIL }} + + - name: Push changes to forked-repo + run: | + git push -f forked-repo main + + - name: Clean up + run: | + git remote remove forked-repo From e74b97f465cff010a39afd8ba525d71b14c9426b Mon Sep 17 00:00:00 2001 From: Chamsol Kim Date: Mon, 25 Aug 2025 00:25:26 +0900 Subject: [PATCH 2/2] =?UTF-8?q?config=20[#99]=20Workflow=20=EC=9D=B4?= =?UTF-8?q?=EB=A6=84=20=EB=B3=80=EA=B2=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/sync-develop.yaml | 2 +- .github/workflows/sync-main.yaml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/sync-develop.yaml b/.github/workflows/sync-develop.yaml index 737c68d..7ca61fd 100644 --- a/.github/workflows/sync-develop.yaml +++ b/.github/workflows/sync-develop.yaml @@ -1,4 +1,4 @@ -name: Synchronize to forked repo +name: Synchronize the develop branch to forked repo on: push: branches: diff --git a/.github/workflows/sync-main.yaml b/.github/workflows/sync-main.yaml index 5436478..453e566 100644 --- a/.github/workflows/sync-main.yaml +++ b/.github/workflows/sync-main.yaml @@ -1,4 +1,4 @@ -name: Synchronize to forked repo +name: Synchronize the main branch to forked repo on: push: branches: