From 8bf76c37dbf89051bde171240b9b1d16dec87572 Mon Sep 17 00:00:00 2001 From: Marlene <57748216+marlenezw@users.noreply.github.com> Date: Wed, 4 Dec 2024 11:08:34 -0500 Subject: [PATCH] Create template-validation.yaml Adding template validation file --- .github/workflows/template-validation.yaml | 28 ++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 .github/workflows/template-validation.yaml 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 }}