Skip to content

Rename Active Alerts KPI to Urgent Alerts (#47) #88

Rename Active Alerts KPI to Urgent Alerts (#47)

Rename Active Alerts KPI to Urgent Alerts (#47) #88

Workflow file for this run

---
name: build
"on":
push:
branches:
- main
pull_request:
jobs:
build:
runs-on: ubuntu-latest
continue-on-error: ${{ ! matrix.stable }}
strategy:
matrix:
os:
- fedora:latest
stable: [true]
include:
- os: quay.io/fedora/fedora:rawhide
stable: false
steps:
- name: Install git
run: dnf install -y git-core
- uses: actions/checkout@v6
with:
fetch-depth: 0
- name: Check for buildable changes
id: filter
run: |
git config --global --add safe.directory "$GITHUB_WORKSPACE"
if [ "${{ github.event_name }}" = "pull_request" ]; then
git fetch origin "${{ github.event.pull_request.base.sha }}"
CHANGED=$(git diff --name-only \
"${{ github.event.pull_request.base.sha }}" HEAD)
else
CHANGED=$(git diff --name-only HEAD~1 HEAD 2>/dev/null || echo "")
fi
if echo "$CHANGED" | grep -qE \
'^(slides/|Makefile$|\.github/workflows/(build-doc\.yaml|install-dependencies)$)'; then
echo "buildable=true" >> "$GITHUB_OUTPUT"
else
echo "buildable=false" >> "$GITHUB_OUTPUT"
fi
echo "Changed files:"
echo "$CHANGED"
echo "buildable=$(cat "$GITHUB_OUTPUT" | grep buildable | cut -d= -f2)"
- name: Show OS information
if: steps.filter.outputs.buildable == 'true'
run: |
cat /etc/os-release 2>/dev/null || \
echo /etc/os-release not available
- name: Install build dependencies
if: steps.filter.outputs.buildable == 'true'
run: bash .github/workflows/install-dependencies
- name: Build documentation
if: steps.filter.outputs.buildable == 'true'
run: |
make -C slides test all
container:
image: ${{matrix.os}}
env:
DISTRO: ${{matrix.os}}
options: --privileged --device /dev/loop-control