diff --git a/.github/workflows/cd.yml b/.github/workflows/cd.yml index 3cff5663..b0207e49 100644 --- a/.github/workflows/cd.yml +++ b/.github/workflows/cd.yml @@ -9,7 +9,7 @@ name: backend_cd on: pull_request: - types: [ closed ] + types: [ opened, reopened, synchronize ] branches: [ 'main' ] jobs: @@ -22,6 +22,8 @@ jobs: steps: - uses: actions/checkout@v4 + with: + ref: ${{ github.event.pull_request.head.ref }} - name: Early exit if: ${{ !contains(github.event.pull_request.labels.*.name, '백엔드') }} run: |