Skip to content

bht, mela: adjust routing metrics #803

bht, mela: adjust routing metrics

bht, mela: adjust routing metrics #803

---
name: Check missing mac_overrides
on: [push, pull_request] # yamllint disable-line rule:truthy
jobs:
check-mac-override-missing:
runs-on: ubuntu-latest
steps:
- name: Checkout branch
uses: actions/checkout@v4
with:
fetch-depth: 0
# Get a list of changed files and pass them to the script
- name: Get Changed Files and Run mac_override missing check
run: |
# Fetch previous commits for comparison
git fetch origin main
# Get list of changed files compared to main branch
changed_files=$(git diff --name-only origin/main)
# Filter out only the location files from the list of changed files
location_files=$(echo "$changed_files" | grep -E '^locations/.*\.yml$' || true)
if [ -z "$location_files" ]; then
echo "No location files changed, skipping check."
exit 0
fi
# Run the mac_override check script with the filtered location files
./.github/checks/check-mac-override-missing.sh "$location_files"