Skip to content

build(deps): bump @azure-tools/typespec-autorest in the typespec group #55

build(deps): bump @azure-tools/typespec-autorest in the typespec group

build(deps): bump @azure-tools/typespec-autorest in the typespec group #55

---
name: Validate dev-infrastructure
on:
push:
branches:
- main
pull_request:
branches:
- main
paths:
- 'dev-infrastructure/**'
jobs:
validate_bicep:
permissions:
contents: 'read'
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@a5ac7e51b41094c92402da3b24376905380afc29 # v4.1.6
with:
fetch-depth: 1
sparse-checkout: dev-infrastructure
- 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)