generated from ministryofjustice/template-repository
-
Notifications
You must be signed in to change notification settings - Fork 0
92 lines (86 loc) · 4.17 KB
/
reports.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
name: Report
on:
schedule:
- cron: "30 7 * * MON" # Every Monday at 07:30 UTC
workflow_dispatch:
jobs:
allocation-failures:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: ./.github/actions/app-insights-to-slack
with:
title: Allocations Integration Report
summary: The following cases failed to allocate in Delius over the last 7 days. Please check and manually correct the cases if required.
event_name: AllocationFailed
project_name: workforce-allocations-to-delius
slack_channel: topic-pi-workforce-allocation
slack_token: ${{ secrets.SLACK_BOT_TOKEN }}
app_insights_key: ${{ secrets.APP_INSIGHTS_API_KEY }}
app_insights_guid: ${{ secrets.APP_INSIGHTS_APPLICATION_GUID }}
app_insights_subscription_id: ${{ secrets.APP_INSIGHTS_SUBSCRIPTION_ID }}
assessment-summary-failures:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: ./.github/actions/app-insights-to-slack
with:
title: Assessment Summary Report
summary: The following cases failed to send an assessment summary to Delius over the last 7 days. Please check and manually correct the cases if possible.
event_name: AssessmentSummaryFailureReport
project_name: assessment-summary-and-delius
slack_channel: topic-pi-assessments
slack_token: ${{ secrets.SLACK_BOT_TOKEN }}
app_insights_key: ${{ secrets.APP_INSIGHTS_API_KEY }}
app_insights_guid: ${{ secrets.APP_INSIGHTS_APPLICATION_GUID }}
app_insights_subscription_id: ${{ secrets.APP_INSIGHTS_SUBSCRIPTION_ID }}
cas1-failures:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: ./.github/actions/app-insights-to-slack
with:
title: Approved Premises (CAS1) Integration Report
summary: The following cases failed to process in Delius over the last 7 days. Please check and manually correct the cases if required.
event_name: ApprovedPremisesFailureReport
project_name: approved-premises-and-delius
slack_channel: topic-pi-cas123
slack_token: ${{ secrets.SLACK_BOT_TOKEN }}
app_insights_key: ${{ secrets.APP_INSIGHTS_API_KEY }}
app_insights_guid: ${{ secrets.APP_INSIGHTS_APPLICATION_GUID }}
app_insights_subscription_id: ${{ secrets.APP_INSIGHTS_SUBSCRIPTION_ID }}
refer-and-monitor-failures:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: ./.github/actions/app-insights-to-slack
with:
title: Refer and Monitor Integration Report
summary: The following cases failed to process in Delius over the last 7 days. Please check and manually correct the cases if required.
event_name: ReferAndMonitorFailureReport
column2_value: message
project_name: refer-and-monitor-and-delius
slack_channel: topic-pi-referandmonitor
slack_token: ${{ secrets.SLACK_BOT_TOKEN }}
app_insights_key: ${{ secrets.APP_INSIGHTS_API_KEY }}
app_insights_guid: ${{ secrets.APP_INSIGHTS_APPLICATION_GUID }}
app_insights_subscription_id: ${{ secrets.APP_INSIGHTS_SUBSCRIPTION_ID }}
manage-offences-new:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: ./.github/actions/app-insights-to-slack
with:
title: New Offences
summary: The following offences were newly created in the <https://manage-offences.hmpps.service.justice.gov.uk|Manage Offences service> over the last 7 days.
event_name: OffenceCodeCreated
project_name: manage-offences-and-delius
column1_header: Offence Code
column1_value: offenceCode
column2_header: Home Office Code
column2_value: homeOfficeCode
slack_channel: topic-probation-offence-codes
slack_token: ${{ secrets.SLACK_BOT_TOKEN }}
app_insights_key: ${{ secrets.APP_INSIGHTS_API_KEY }}
app_insights_guid: ${{ secrets.APP_INSIGHTS_APPLICATION_GUID }}
app_insights_subscription_id: ${{ secrets.APP_INSIGHTS_SUBSCRIPTION_ID }}