Skip to content

Commit

Permalink
update workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
Himanshu Jain committed Feb 22, 2024
1 parent 4cac510 commit 3006bc0
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions .github/workflows/pull-request.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
# Runs when PR is created, updated, or reopened

name: Deploy to Firebase Hosting on PR
'on': pull_request
'on':
pull_request:
workflow_dispatch:
jobs:
build_and_preview:
if: '${{ github.event.pull_request.head.repo.full_name == github.repository }}'
Expand Down Expand Up @@ -49,7 +51,7 @@ jobs:
curl -sSL -H "Authorization: token $GITHUB_TOKEN" -d "{\"body\": \"$COMMENT\"}" -H "Content-Type: application/json" -X POST "https://api.github.com/repos/${GITHUB_REPOSITORY}/issues/${{ github.event.pull_request.number }}/comments"
- name: Send Notification
if: success() # failure()
if: failure() # success(), failure()
uses: dawidd6/action-send-mail@v2
with:
server_address: smtp.gmail.com
Expand All @@ -64,4 +66,4 @@ jobs:
# comma-separated string, send email to
to: [email protected]
# from email name
from: Repo himanshujain.dev
from: GitHub Actions

0 comments on commit 3006bc0

Please sign in to comment.