Skip to content

Enable ActionLint (static checker for GitHub Actions workflow files) #59

Enable ActionLint (static checker for GitHub Actions workflow files)

Enable ActionLint (static checker for GitHub Actions workflow files) #59

Workflow file for this run

on:
workflow_call:
pull_request:
branches:
- main
paths:
- eng/scripts/Test-BicepLint.ps1
- .github/workflows/lint-bicep.yml
jobs:
bicep-lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6
- name: Upgrade bicep
run: |
BICEP_PATH=$(which bicep)
sudo curl -o "$BICEP_PATH" -L https://github.com/Azure/bicep/releases/download/v0.44.1/bicep-linux-x64
sudo chmod +x "$BICEP_PATH"
- name: Lint .bicep files
run: $ErrorActionPreference='Continue'; eng/scripts/Test-BicepLint.ps1 -Verbose
shell: pwsh