Skip to content

Commit

Permalink
Merge pull request #2313 from sinto-aot/pr-notification-google-chat
Browse files Browse the repository at this point in the history
Updated PR notification to google chat
  • Loading branch information
arun-s-aot authored Oct 29, 2024
2 parents b490881 + 1bc2356 commit 0e5caec
Showing 1 changed file with 13 additions and 2 deletions.
15 changes: 13 additions & 2 deletions .github/workflows/pr-notification.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,10 +25,20 @@ jobs:
echo "status=🟢 Open" >> $GITHUB_ENV
fi
- name: Confirm PR_NOTIFICATION Secret is Set
run: |
if [[ -z "${{ secrets.PR_NOTIFICATION }}" ]]; then
echo "PR_NOTIFICATION secret is not set."
else
echo "PR_NOTIFICATION secret is set."
fi
- name: Send notification to Google Chat
uses: fjogeleit/http-request-action@v1.1.0
uses: fjogeleit/http-request-action@v1.16.0
with:
url: ${{ secrets.WEBHOOK }}
url: ${{ secrets.PR_NOTIFICATION }}

method: POST
contentType: application/json
data: |
Expand Down Expand Up @@ -73,3 +83,4 @@ jobs:
}
]
}

0 comments on commit 0e5caec

Please sign in to comment.