From b07baf5a950758a23a43dc9be3906c0194e9a3ee Mon Sep 17 00:00:00 2001 From: "Jose Manuel (Ito)" Date: Fri, 25 Aug 2023 10:41:22 -0400 Subject: [PATCH] feat(nightly builds): need gh secret --- .github/workflows/build.yml | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index c034f13..247fe29 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -10,12 +10,16 @@ # # 2. Change the values for the REGISTRY_NAME environment variables (below). name: build -on: [pull_request] +on: + pull_request: + schedule: + - cron: '0 22 * * *' # Environment variables available to all jobs and steps in this workflow env: REGISTRY_NAME: k8scc01covidacr TRIVY_VERSION: "v0.43.1" + SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }} jobs: build: services: @@ -49,3 +53,10 @@ jobs: exit-code: '1' exit-level: 'fatal' ignore: 'DKL-DI-0006' + + - name: Slack Notification + if: failure() && github.event_name=='schedule' + uses: act10ns/slack@v1 + with: + status: failure + message: profile-state-controller build failed. https://github.com/StatCan/aaw-profile-state-controller/actions/runs/${{github.run_id}}