-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Himanshu Jain
committed
Feb 22, 2024
1 parent
4cac510
commit 3006bc0
Showing
1 changed file
with
5 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 }}' | ||
|
@@ -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 | ||
|
@@ -64,4 +66,4 @@ jobs: | |
# comma-separated string, send email to | ||
to: [email protected] | ||
# from email name | ||
from: Repo himanshujain.dev | ||
from: GitHub Actions |