.github/workflows/monitoring.yml #1166
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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" | |
} |