From 0db28d4d3f3377a732a9e3b03dc968947d17673c Mon Sep 17 00:00:00 2001 From: leejin_rho <52371699+leejin-rho@users.noreply.github.com> Date: Tue, 29 Oct 2024 16:31:23 +0900 Subject: [PATCH] =?UTF-8?q?fix:=20=EB=B6=88=ED=95=84=EC=9A=94=ED=95=98?= =?UTF-8?q?=EA=B2=8C=20=EC=97=90=EB=9F=AC=20=EC=9D=BC=EC=9C=BC=ED=82=A4?= =?UTF-8?q?=EB=8A=94=20=EC=BD=94=EB=93=9C=20=EC=82=AD=EC=A0=9C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/sync-to-backend-repo.yml | 29 ++-------------------- 1 file changed, 2 insertions(+), 27 deletions(-) diff --git a/.github/workflows/sync-to-backend-repo.yml b/.github/workflows/sync-to-backend-repo.yml index 24b3e1838ad..fa98cf8ab39 100644 --- a/.github/workflows/sync-to-backend-repo.yml +++ b/.github/workflows/sync-to-backend-repo.yml @@ -5,7 +5,7 @@ on: branches: - master types: - - closed # PR이 master에 머지될 때만 + - closed # PR이 master에 병합될 때만 jobs: sync_files: @@ -20,32 +20,6 @@ jobs: npm install # 또는 yarn install npm run build # 또는 yarn build - # Configure Git with PR Author - - name: Configure Git with PR Author - run: | - if [[ "${{ github.event.pull_request.merged }}" == 'true' ]]; then - git config --global user.name "${{ github.event.pull_request.user.login }}" - git config --global user.email "${{ github.event.pull_request.user.login }}@users.noreply.github.com" - fi - - # Commit with PR Author info - - name: Amend Commit with Author Info - run: | - if [[ "${{ github.event.pull_request.merged }}" == 'true' ]]; then - git commit --amend --no-edit --author="${{ github.event.pull_request.user.login }} <${{ github.event.pull_request.user.login }}@users.noreply.github.com>" - git push origin main --force - echo "Git user.name: $(git config user.name)" - fi - - # Commit with PR Title as Message - - name: Commit with PR Title as Message - run: | - if [[ "${{ github.event.pull_request.merged }}" == 'true' ]]; then - git commit --amend --no-edit --author="${{ github.event.pull_request.user.login }} <${{ github.event.pull_request.user.login }}@users.noreply.github.com>" - git commit -m "${{ github.event.pull_request.title }}" - git push origin main --force - fi - - name: Sync Files to Backend Repository run: | if [[ "${{ github.event.pull_request.merged }}" == 'true' ]]; then @@ -77,3 +51,4 @@ jobs: env: GITHUB_TOKEN: ${{ secrets.PAT }} +