-
Notifications
You must be signed in to change notification settings - Fork 4
42 lines (41 loc) · 1.1 KB
/
monitoring.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
on:
push:
branches:
- sm/gha
workflow_dispatch:
schedule:
# every hour
- cron: 50 4 * * *
jobs:
check:
strategy:
matrix:
runs-on: [ubuntu-latest, windows-latest, macos-latest]
cli: [sf]
method: [tarball, npm, installer]
channel: [stable, stable-rc]
exclude:
- runs-on: ubuntu-latest
method: installer
fail-fast: false
uses: ./.github/workflows/install.yml
with:
method: ${{ matrix.method }}
cli: ${{ matrix.cli }}
channel: ${{ matrix.channel }}
runs-on: ${{ matrix.runs-on }}
secrets: inherit
slack:
needs: [check]
if: always() && needs.check.result == 'failure'
runs-on: ubuntu-latest
steps:
- uses: slackapi/[email protected]
env:
SLACK_WEBHOOK_URL: ${{ secrets.CLI_ALERTS_SLACK_WEBHOOK }}
SLACK_WEBHOOK_TYPE: INCOMING_WEBHOOK
with:
payload: |
{
"text": "A READS monitoring job failed. See https://github.com/salesforcecli/status/actions for more information"
}