Skip to content

A local-first personal finance app

Add Discord notification for nightly theme catalog scan failures (#7595)

Matiss Janis Aboltinsaeb28d3b8752
diff --git a/.github/workflows/nightly-theme-catalog-scan.yml b/.github/workflows/nightly-theme-catalog-scan.yml
index 2c975909ff..dcbb698706 100644
--- a/.github/workflows/nightly-theme-catalog-scan.yml
+++ b/.github/workflows/nightly-theme-catalog-scan.yml
@@ -27,3 +27,21 @@ jobs:
download-translations: 'false'
- name: Validate themes
run: yarn workspace @actual-app/web validate:theme-catalog
+
+ notify-failure:
+ name: Notify Discord on failure
+ needs: validate-theme-catalog
+ if: failure() && github.repository == 'actualbudget/actual'
+ runs-on: ubuntu-latest
+ environment: nightly-alerts
+ timeout-minutes: 5
+ steps:
+ - name: Notify Discord
+ uses: sarisia/actions-status-discord@eb045afee445dc055c18d3d90bd0f244fd062708 # v1.16.0
+ with:
+ webhook: ${{ secrets.DISCORD_WEBHOOK_URL }}
+ status: Failure
+ title: Nightly theme catalog scan failed
+ description: The nightly scan failed. One or more themes may be broken, or the scan itself did not complete.
+ username: Actual Nightly
+ nofail: true
diff --git a/upcoming-release-notes/7595.md b/upcoming-release-notes/7595.md
new file mode 100644
index 0000000000..93cca19ee9
--- /dev/null
+++ b/upcoming-release-notes/7595.md
@@ -0,0 +1,6 @@
+---
+category: Maintenance
+authors: [MatissJanis]
+---
+
+Notify Discord when the nightly custom theme catalog scan fails.