Skip to content

Implement alerts per bundle and remove core alerts #96

Implement alerts per bundle and remove core alerts

Implement alerts per bundle and remove core alerts #96

Workflow file for this run

name: Check Alerts using Promtool
on:
pull_request:
paths:
- '**/*.rules.yaml'
- '**/*.alerts.yaml'
jobs:
lint:
@@ -14,19 +20,42 @@ jobs:

Check failure on line 10 in .github/workflows/check-alerts.yaml

View workflow run for this annotation

GitHub Actions / .github/workflows/check-alerts.yaml

Invalid workflow file

You have an error in your yaml syntax on line 10
- name: Checkout PR
uses: actions/checkout@v5
- name: Get changed rule and alert files
id: changed
uses: tj-actions/changed-files@v46
- name: Install Helm
uses: azure/setup-helm@v4
with:
files: |
**/*.rules.yaml
**/*.alerts.yaml
- name: Check changed rule and alert files via promtool
if: steps.changed.outputs.any_changed == 'true'
uses: peimanja/[email protected]
with:
promtool_actions_subcommand: 'rules'
promtool_actions_files: ${{ steps.changed.outputs.all_changed_files }}
promtool_actions_version: 'latest'
promtool_actions_comment: 'false'