Skip to content

Detach NSG from subnet before deletion #5286

Detach NSG from subnet before deletion

Detach NSG from subnet before deletion #5286

Workflow file for this run

name: Bicep Lint
on:
pull_request:
branches:
- main
jobs:
paths-filter:
runs-on: ubuntu-latest
outputs:
bicep: ${{ steps.filter.outputs.bicep }}
steps:
- name: Checkout
uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1
with:
fetch-depth: 1
- name: Filter paths
id: filter
uses: dorny/paths-filter@v3
with:
filters: |
bicep:
- 'dev-infrastructure/**'
validate_bicep:
needs: paths-filter
if: needs.paths-filter.outputs.bicep == 'true'
permissions:
contents: 'read'
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1
with:
fetch-depth: 1
- name: 'az bicep format and lint'
working-directory: './dev-infrastructure'
run: |
# https://github.com/actions/runner-images/issues/11987
az config set bicep.use_binary_from_path=false
az bicep install
az bicep version
make fmt
make lint
- name: Check for uncommitted changes
working-directory: './dev-infrastructure'
run: |
git diff --exit-code -- '***.bicep***' || (echo "::error::Uncommitted changes detected in bicep templates" && exit 1)