feat: Add weekly schedule for Azure Template validation,split azure-d… #1
Workflow file for this run
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: AZD Template Validation | |
| on: | |
| schedule: | |
| - cron: '30 1 * * 4' # Every Thursday at 7:00 AM IST (1:30 AM UTC) | |
| workflow_dispatch: | |
| push: | |
| branches: | |
| - psl-weeklyschedule-codmod | |
| permissions: | |
| contents: read | |
| id-token: write | |
| pull-requests: write | |
| jobs: | |
| template_validation: | |
| runs-on: ubuntu-latest | |
| name: azd template validation | |
| environment: production | |
| steps: | |
| - name: Checkout code | |
| uses: actions/checkout@v6 | |
| - name: Validate Azure Template | |
| id: validation | |
| uses: microsoft/template-validation-action@v0.4.3 | |
| with: | |
| validateAzd: ${{ vars.TEMPLATE_VALIDATE_AZD }} | |
| validateTests: ${{ vars.TEMPLATE_VALIDATE_TESTS }} | |
| useDevContainer: ${{ vars.TEMPLATE_USE_DEV_CONTAINER }} | |
| env: | |
| AZURE_CLIENT_ID: ${{ secrets.AZURE_CLIENT_ID }} | |
| AZURE_TENANT_ID: ${{ secrets.AZURE_TENANT_ID }} | |
| AZURE_SUBSCRIPTION_ID: ${{ secrets.AZURE_SUBSCRIPTION_ID }} | |
| AZURE_ENV_NAME: ${{ secrets.AZURE_ENV_NAME }} | |
| AZURE_LOCATION: ${{ secrets.AZURE_LOCATION }} | |
| AZURE_ENV_AI_SERVICE_LOCATION: ${{ secrets.AZURE_AI_DEPLOYMENT_LOCATION || secrets.AZURE_LOCATION }} | |
| AZURE_ENV_MODEL_CAPACITY: 1 | |
| GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
| AZURE_DEV_COLLECT_TELEMETRY: ${{ vars.AZURE_DEV_COLLECT_TELEMETRY }} | |
| - name: Print result | |
| shell: bash | |
| run: cat "${{ steps.validation.outputs.resultFile }}" |