Add host details feature for capacity dashboard #12
Workflow file for this run
This file contains hidden or 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
| name: Check Alerts using Promtool | |
| on: | |
| pull_request: | |
| paths: | |
| - '**/*.rules.yaml' | |
| - '**/*.alerts.yaml' | |
| jobs: | |
| lint: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout PR | |
| uses: actions/checkout@v4 | |
| - name: Get changed rule and alert files | |
| id: changed | |
| uses: tj-actions/changed-files@v46 | |
| 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' |