From d8c87994a87df6099f321fce6398b5be13e64519 Mon Sep 17 00:00:00 2001 From: 5nxtnxtnxt <5nxtnxtnxt@gmail.com> Date: Mon, 20 May 2024 12:47:43 +0900 Subject: [PATCH 1/7] cd: auto push workflow MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit main브렌치 변동시 vercel 배포 레포지토리에 자동 push --- .github/workflows/auto-push.yml | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 .github/workflows/auto-push.yml diff --git a/.github/workflows/auto-push.yml b/.github/workflows/auto-push.yml new file mode 100644 index 0000000..1a9c874 --- /dev/null +++ b/.github/workflows/auto-push.yml @@ -0,0 +1,21 @@ +name: Auto Push to 5nxtnxtnxt Repo(Vercel Deployment Repo) + +on: + push: + branches: + - main + +jobs: + push-to-personal: + runs-on: ubuntu-latest + + steps: + - name: Checkout repository + uses: actions/checkout@v2 + + - name: Push to personal repository + env: + PERSONAL_REPO: https://x-access-token:${{ secrets.PERSONAL_ACCESS_TOKEN }}@github.com//.git + run: | + git remote add personal $PERSONAL_REPO + git push personal main From 4df5e8cb484ace545f60ae028a1433dc5904ab25 Mon Sep 17 00:00:00 2001 From: 5nxtnxtnxt <5nxtnxtnxt@gmail.com> Date: Mon, 20 May 2024 13:02:50 +0900 Subject: [PATCH 2/7] fix: auto-push workflows --- .github/workflows/auto-push.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/auto-push.yml b/.github/workflows/auto-push.yml index 1a9c874..13d8d4a 100644 --- a/.github/workflows/auto-push.yml +++ b/.github/workflows/auto-push.yml @@ -15,7 +15,7 @@ jobs: - name: Push to personal repository env: - PERSONAL_REPO: https://x-access-token:${{ secrets.PERSONAL_ACCESS_TOKEN }}@github.com//.git + PERSONAL_REPO: https://x-access-token:${{ secrets.PERSONAL_ACCESS_TOKEN }}@github.com/5nxtnxtnxt/RunningMate.git run: | git remote add personal $PERSONAL_REPO git push personal main From da601f8180d0870edc71c257dbb003bd0d62bf4a Mon Sep 17 00:00:00 2001 From: 5nxtnxtnxt <5nxtnxtnxt@gmail.com> Date: Mon, 20 May 2024 13:09:30 +0900 Subject: [PATCH 3/7] fix: auto-push workflows --- .github/workflows/auto-push.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/auto-push.yml b/.github/workflows/auto-push.yml index 13d8d4a..c2d121e 100644 --- a/.github/workflows/auto-push.yml +++ b/.github/workflows/auto-push.yml @@ -11,7 +11,7 @@ jobs: steps: - name: Checkout repository - uses: actions/checkout@v2 + uses: actions/checkout@v3 - name: Push to personal repository env: From 64cb304886ac29a188d30a11f03bccf05207bdd0 Mon Sep 17 00:00:00 2001 From: 5nxtnxtnxt <5nxtnxtnxt@gmail.com> Date: Mon, 20 May 2024 13:31:49 +0900 Subject: [PATCH 4/7] fix: auto-push workflows --- .github/workflows/auto-push.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/auto-push.yml b/.github/workflows/auto-push.yml index c2d121e..92a3513 100644 --- a/.github/workflows/auto-push.yml +++ b/.github/workflows/auto-push.yml @@ -11,11 +11,12 @@ jobs: steps: - name: Checkout repository - uses: actions/checkout@v3 + uses: actions/checkout@latest - name: Push to personal repository env: PERSONAL_REPO: https://x-access-token:${{ secrets.PERSONAL_ACCESS_TOKEN }}@github.com/5nxtnxtnxt/RunningMate.git run: | + echo "PERSONAL_REPO: $PERSONAL_REPO" git remote add personal $PERSONAL_REPO git push personal main From 2d1e59d1ef37444dd794559ee76f0776cc55eb6f Mon Sep 17 00:00:00 2001 From: 5nxtnxtnxt <5nxtnxtnxt@gmail.com> Date: Mon, 20 May 2024 13:32:19 +0900 Subject: [PATCH 5/7] fix: auto-push workflows --- .github/workflows/auto-push.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/auto-push.yml b/.github/workflows/auto-push.yml index 92a3513..92c1800 100644 --- a/.github/workflows/auto-push.yml +++ b/.github/workflows/auto-push.yml @@ -11,7 +11,7 @@ jobs: steps: - name: Checkout repository - uses: actions/checkout@latest + uses: actions/checkout@v2 - name: Push to personal repository env: From b21b078b68e7a8fd3b4dffed08221acc9bbae84c Mon Sep 17 00:00:00 2001 From: 5nxtnxtnxt <5nxtnxtnxt@gmail.com> Date: Mon, 20 May 2024 13:39:43 +0900 Subject: [PATCH 6/7] fix: auto-push workflows --- .github/workflows/auto-push.yml | 17 ++++++++--------- 1 file changed, 8 insertions(+), 9 deletions(-) diff --git a/.github/workflows/auto-push.yml b/.github/workflows/auto-push.yml index 92c1800..f5e3860 100644 --- a/.github/workflows/auto-push.yml +++ b/.github/workflows/auto-push.yml @@ -6,17 +6,16 @@ on: - main jobs: - push-to-personal: + sync: runs-on: ubuntu-latest steps: - - name: Checkout repository + - name: Checkout code uses: actions/checkout@v2 - - name: Push to personal repository - env: - PERSONAL_REPO: https://x-access-token:${{ secrets.PERSONAL_ACCESS_TOKEN }}@github.com/5nxtnxtnxt/RunningMate.git - run: | - echo "PERSONAL_REPO: $PERSONAL_REPO" - git remote add personal $PERSONAL_REPO - git push personal main + - name: Push to Personal Repo + uses: ad-m/github-push-action@master + with: + github_token: ${{ secrets.PERSONAL_ACCESS_TOKEN }} + branch: main + repository: 5nxtnxtnxt/RunningMate From e833b882bd0ac2dfb3eb7bd69fbe2df9998573a0 Mon Sep 17 00:00:00 2001 From: 5nxtnxtnxt <5nxtnxtnxt@gmail.com> Date: Mon, 20 May 2024 13:56:29 +0900 Subject: [PATCH 7/7] fix: auto-push workflows --- .github/workflows/auto-push.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/auto-push.yml b/.github/workflows/auto-push.yml index f5e3860..4a16317 100644 --- a/.github/workflows/auto-push.yml +++ b/.github/workflows/auto-push.yml @@ -11,7 +11,7 @@ jobs: steps: - name: Checkout code - uses: actions/checkout@v2 + uses: actions/checkout@v4 - name: Push to Personal Repo uses: ad-m/github-push-action@master