Merge pull request #289 from microsoft/dev #121
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: Azure Template Validation | |
on: | |
push: | |
branches: | |
- main | |
workflow_dispatch: | |
permissions: | |
contents: read | |
id-token: write | |
pull-requests: write | |
jobs: | |
template_validation_job: | |
runs-on: ubuntu-latest | |
name: template validation | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: microsoft/template-validation-action@Latest | |
id: validation | |
env: | |
AZURE_CLIENT_ID: ${{ vars.AZURE_CLIENT_ID }} | |
AZURE_TENANT_ID: ${{ vars.AZURE_TENANT_ID }} | |
AZURE_SUBSCRIPTION_ID: ${{ vars.AZURE_SUBSCRIPTION_ID }} | |
AZURE_ENV_NAME: ${{ vars.AZURE_ENV_NAME }} | |
AZURE_LOCATION: ${{ vars.AZURE_LOCATION }} | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
- name: print result | |
run: cat ${{ steps.validation.outputs.resultFile }} |