Skip to content

Commit

Permalink
run when targeting main branch
Browse files Browse the repository at this point in the history
  • Loading branch information
FinnBueno committed Apr 25, 2023
1 parent 5df973d commit 18377ea
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/firebase-hosting-merge.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ jobs:
build_and_deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3
- run: npm i --no-package-lock && npm run build
- uses: FirebaseExtended/action-hosting-deploy@v0
with:
Expand Down
5 changes: 4 additions & 1 deletion .github/workflows/firebase-hosting-pull-request.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,10 @@
# https://github.com/firebase/firebase-tools

name: Deploy to Firebase Hosting on PR
'on': pull_request_target
'on':
pull_request:
branches:
- main
jobs:
build_and_preview:
if: '${{ github.event.pull_request.head.repo.full_name == github.repository }}'
Expand Down

0 comments on commit 18377ea

Please sign in to comment.