Skip to content

Commit

Permalink
chore(4844): send RocketChat notification when GitHub pages deploymen…
Browse files Browse the repository at this point in the history
…t fails
  • Loading branch information
junminahn committed Feb 4, 2025
1 parent 8af780a commit 272a653
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions .github/workflows/mkdocs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,10 @@ on:
push:
branches:
- main
paths:
- .github/workflows/mkdocs.yml
- docs/**
- README.md

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
Expand Down Expand Up @@ -33,3 +37,13 @@ jobs:
uses: JamesIves/[email protected]
with:
folder: site

- name: Notify RocketChat on Failure
if: failure()
uses: ./.github/actions/rocketchat-notification
with:
webhook-url: ${{ secrets.ROCKETCHAT_WEBHOOK_URL }}
data: |
{
"text": ":warning: Deployment to GitHub Pages failed! [Investigate here](https://github.com/bcgov/platform-services-registry/actions/workflows/mkdocs.yml)"
}
File renamed without changes.

0 comments on commit 272a653

Please sign in to comment.