add rule group related alerts #10
Workflow file for this run
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
name: run-checks | |
on: | |
pull_request: | |
branches: | |
- main | |
jobs: | |
run-checks: | |
runs-on: ubuntu-latest | |
permissions: | |
actions: read | |
contents: read | |
steps: | |
- name: Checkout Repository | |
uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 | |
- name: Install packages | |
run: | | |
sudo apt-get update | |
sudo apt-get -y install gettext git | |
- name: Install Promtool | |
run: | | |
PROM_VERSION=$(curl -s https://api.github.com/repos/prometheus/prometheus/releases/latest | jq -r .tag_name) | |
wget https://github.com/prometheus/prometheus/releases/download/${PROM_VERSION}/prometheus-${PROM_VERSION#"v"}.linux-amd64.tar.gz | |
tar -xvf prometheus-${PROM_VERSION#"v"}.linux-amd64.tar.gz | |
sudo mv prometheus-${PROM_VERSION#"v"}.linux-amd64/promtool /usr/local/bin/ | |
rm -rf prometheus-${PROM_VERSION}.linux-amd64 prometheus-${PROM_VERSION}.linux-amd64.tar.gz | |
- name: Run ./check-rules script | |
run: ./scripts/check-rules |