diff --git a/.github/workflows/review-app.yml b/.github/workflows/review-app.yml index c989dcea..be735c18 100644 --- a/.github/workflows/review-app.yml +++ b/.github/workflows/review-app.yml @@ -2,9 +2,12 @@ name: Review app on pull request +env: + BRANCH_NAME: ${{ github.head_ref || github.ref_name }} + on: pull_request: - branches: [ "main" ] + branches: ${{ env.BRANCH_NAME }} env: BRANCH_NAME: ${{ github.head_ref || github.ref_name }}