Skip to content

Commit

Permalink
Merge pull request #283 from Azure-Samples/marlenezw-patch-1
Browse files Browse the repository at this point in the history
Create template-validation.yaml
  • Loading branch information
marlenezw authored Dec 4, 2024
2 parents 7ea6707 + 8bf76c3 commit 4397698
Showing 1 changed file with 28 additions and 0 deletions.
28 changes: 28 additions & 0 deletions .github/workflows/template-validation.yaml
Original file line number Diff line number Diff line change
@@ -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/[email protected]
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 }}

0 comments on commit 4397698

Please sign in to comment.