fix: Dev v3 #1
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: validate template property for telemetry | |
| on: | |
| pull_request: | |
| branches: | |
| - main | |
| paths: | |
| - 'azure.yaml' | |
| jobs: | |
| validate-template-property: | |
| name: validate-template-property | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout code | |
| uses: actions/checkout@v4 | |
| - name: Check for required metadata template line | |
| run: | | |
| if grep -E '^\s*#\s*template:\s*multi-agent-custom-automation-engine-solution-accelerator@1\.0' azure.yaml; then | |
| echo "ERROR: 'template' line is commented out in azure.yaml! Please uncomment template line." | |
| exit 1 | |
| fi | |
| if ! grep -E '^\s*template:\s*multi-agent-custom-automation-engine-solution-accelerator@1\.0' azure.yaml; then | |
| echo "ERROR: Required 'template' line is missing in azure.yaml! Please add template line for telemetry." | |
| exit 1 | |
| fi | |
| echo "template line is present and not commented." |