appropriate name for NSG #22
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
| name: Generate ARM Template | |
| on: | |
| push: | |
| branches: | |
| - master | |
| paths: | |
| - '**/*.bicep' | |
| jobs: | |
| build-and-push: | |
| runs-on: ubuntu-latest | |
| permissions: # Job-level permissions configuration starts here | |
| contents: write # 'write' access to repository contents | |
| steps: | |
| - name: Checkout repository | |
| uses: actions/checkout@v6 | |
| - name: Generate ARM template | |
| run: az bicep build --file azuredeploy.bicep | |
| - name: Commit and push generated ARM template | |
| run: | | |
| git config --global user.name 'github-actions[bot]' | |
| git config --global user.email 'github-actions[bot]@users.noreply.github.com' | |
| git add azuredeploy.json | |
| git commit -m 'Generate ARM template from Bicep' | |
| git push |