Skip to content

templatize makefile config and bicepparams #742

templatize makefile config and bicepparams

templatize makefile config and bicepparams #742

---
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
sparse-checkout: dev-infrastructure
- name: 'az bicep format and lint'
working-directory: './dev-infrastructure'
run: |
az bicep version
make -f Makefile.lint.mk fmt
make -f Makefile.lint.mk 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)