diff --git a/.github/workflows/template-validation.yaml b/.github/workflows/template-validation.yaml new file mode 100644 index 00000000..8e465a0e --- /dev/null +++ b/.github/workflows/template-validation.yaml @@ -0,0 +1,28 @@ +name: Template Validation Sample Workflow +on: + 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@v0.3.3 + 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 }}