From d108709e4d0e53f86a67c77af685a2f7a134fe92 Mon Sep 17 00:00:00 2001 From: Jo Hyeonsoo Date: Fri, 19 Jul 2024 14:49:25 +0900 Subject: [PATCH] =?UTF-8?q?Revert=20"[Action]=20master=20=EB=B3=80?= =?UTF-8?q?=EA=B2=BD=EC=82=AC=ED=95=AD=20backend=EC=97=90=20=EC=A0=81?= =?UTF-8?q?=EC=9A=A9"?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../.github/workflows/change-pr-target.yaml | 28 ------------------- 1 file changed, 28 deletions(-) delete mode 100644 frontend/.github/workflows/change-pr-target.yaml diff --git a/frontend/.github/workflows/change-pr-target.yaml b/frontend/.github/workflows/change-pr-target.yaml deleted file mode 100644 index b7e76f6..0000000 --- a/frontend/.github/workflows/change-pr-target.yaml +++ /dev/null @@ -1,28 +0,0 @@ -name: Change PR target if base branch is master - -on: - pull_request: - types: - - opened - - synchronize - - reopened - branches: - - master - -jobs: - change-pr-target: - runs-on: ubuntu-latest - steps: - - name: Set target environment variable - run: | - if [[ "${GITHUB_HEAD_REF}" == fe* || "${GITHUB_HEAD_REF}" == FE* ]]; then - echo "target=frontend" >> $GITHUB_ENV - elif [[ "${GITHUB_HEAD_REF}" == be* || "${GITHUB_HEAD_REF}" == BE* ]]; then - echo "target=backend" >> $GITHUB_ENV - fi - - - name: Change base branch for PR - if: env.target == 'frontend' || env.target == 'backend' - run: gh pr edit ${{ github.event.pull_request.number }} --base ${{ env.target }} --repo ${{ github.repository }} - env: - GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}