diff --git a/.github/workflows/.checkTemplateIgnore b/.github/workflows/.checkTemplateIgnore new file mode 100644 index 0000000000..f5cf544c5a --- /dev/null +++ b/.github/workflows/.checkTemplateIgnore @@ -0,0 +1,27 @@ +000-HowToHack +004-HotelCaliVegasDevHack +006-AppModernization +007-AzureMonitoring +008-DatabricksIntroML +012-InfraAsCode-Terraform +013-InfraAsCode-Ansible +015-Serverless +016-AppMigration +017-FrontDoor +018-BI2AI +019-ThisOldDataWarehouse +020-MasteringLinux +022-AzureGovernance +024-DoYouEvenSynapse +028-AdvancedNetworking +029-IoTEdge +031-DevOpsWithGitHub +032-MLOpsFromScratch +033-OSSDatabaseMigration +034-MicrosoftTeams-MakeItReal +035-HubAndSpoke +036-BGP +038-MDWCovid19 +041-VirtualWAN +043-SQLModernization +044-DevOpswithGithubActions \ No newline at end of file diff --git a/.github/workflows/checkTemplate.yml b/.github/workflows/checkTemplate.yml new file mode 100644 index 0000000000..49ac30f64d --- /dev/null +++ b/.github/workflows/checkTemplate.yml @@ -0,0 +1,32 @@ +name: Check Template Format + +on: + workflow_dispatch: + pull_request: + branches: + - master + paths: + - '**' + - '!README.md' + - '!assets/**' + - '!.github/**' + - '.github/workflows/checkTemplate.yml' + push: + paths: + - '**' + - '!README.md' + - '!assets/**' + - '!.github/**' + - '.github/workflows/checkTemplate.yml' + +jobs: + checklinks: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + - name: Template Format Check + uses: jordanbean-msft/github-action-wth-template-check@v0.4.0 + with: + path: ${{ github.workspace }} + shouldScanSubdirectories: true + pathToIgnoreFile: ${{ github.workspace }}/.github/workflows/.checkTemplateIgnore \ No newline at end of file