Skip to content

templatize makefile config and bicepparams #749

templatize makefile config and bicepparams

templatize makefile config and bicepparams #749

---
name: Validate dev-infrastructure
on:
pull_request:
branches:
- main
paths:
- 'dev-infrastructure/**'
jobs:
validate_bicep:
permissions:
contents: 'read'
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@eef61447b9ff4aafe5dcd4e0bbf5d482be7e7871 # v4.2.1
with:
fetch-depth: 1
- name: 'az bicep format and lint'
working-directory: './dev-infrastructure'
run: |
az bicep version
make fmt
make lint
- name: Check for uncommitted changes
working-directory: './dev-infrastructure'
run: |
git diff --exit-code || (echo "::error::Uncommitted changes detected in bicep templates" && exit 1)