Enable ActionLint (static checker for GitHub Actions workflow files) #59
Workflow file for this run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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 |