Skip to content

Fix indentation in check-alerts workflow YAML #97

Fix indentation in check-alerts workflow YAML

Fix indentation in check-alerts workflow YAML #97

Workflow file for this run

name: Check Alerts using Promtool

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

View workflow run for this annotation

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

Invalid workflow file

(Line: 10, Col: 5): Unexpected value 'jobs', (Line: 10, Col: 5): There's not enough info to determine what you meant. Add one of these properties: cancel-timeout-minutes, container, continue-on-error, defaults, env, environment, outputs, runs-on, secrets, services, snapshot, steps, timeout-minutes, uses, with
on:
pull_request:
paths:
- '**/*.rules.yaml'
- '**/*.alerts.yaml'
jobs:
lint:
jobs:
- 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'