From a29c91fd732fe36a9574943fd92c863700f7a4fe Mon Sep 17 00:00:00 2001 From: Ehsan Date: Tue, 29 Aug 2023 18:09:36 +0400 Subject: [PATCH] Update firebase-hosting-pull-request.yml --- .github/workflows/firebase-hosting-pull-request.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/firebase-hosting-pull-request.yml b/.github/workflows/firebase-hosting-pull-request.yml index 7692aa1..7534e7c 100644 --- a/.github/workflows/firebase-hosting-pull-request.yml +++ b/.github/workflows/firebase-hosting-pull-request.yml @@ -5,10 +5,11 @@ name: Deploy to Firebase Hosting on PR 'on': pull_request_target jobs: build_and_preview: - if: '${{ github.event.pull_request.base.repo.full_name == github.repository }}' runs-on: ubuntu-latest steps: - uses: actions/checkout@v2 + with: + ref: ${{ github.head_ref }} - uses: FirebaseExtended/action-hosting-deploy@v0 with: repoToken: '${{ secrets.GITHUB_TOKEN }}'