Skip to content

.github/workflows/monitoring.yml #1128

.github/workflows/monitoring.yml

.github/workflows/monitoring.yml #1128

Workflow file for this run

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"
}