Skip to content

Commit

Permalink
Remove arm-ttk ci job #2734 (#2735)
Browse files Browse the repository at this point in the history
  • Loading branch information
hocinehacherouf authored Jan 2, 2024
1 parent 72a6d2f commit 7e9394f
Show file tree
Hide file tree
Showing 2 changed files with 40 additions and 61 deletions.
61 changes: 0 additions & 61 deletions .github/workflows/arm-ttk.yml

This file was deleted.

40 changes: 40 additions & 0 deletions .github/workflows/bicep-lint.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
name: Validate Bicep templates

on:
pull_request:
branches: [ main ]
paths:
- 'templates/azure/**'
- 'templates/iotedge-lorawan-starterkit/**'
push:
branches: [ main ]
paths:
- 'templates/azure/**'
- 'templates/iotedge-lorawan-starterkit/**'
workflow_dispatch:

jobs:
validate_bicep_templates:
name: Build and Validate Bicep Templates
runs-on: ubuntu-latest

steps:
- name: Apply arm-templates label on PR
uses: actions/github-script@v7
if: ${{ github.event_name == 'pull_request' }}
with:
script: |
github.rest.issues.addLabels({
issue_number: context.issue.number,
owner: context.repo.owner,
repo: context.repo.repo,
labels: ['arm-templates']
})
- uses: actions/[email protected]
with:
submodules: recursive

- name: Lint Bicep templates and Generate ARM template
working-directory: templates/azure
run: az bicep build --file azuredeploy.bicep --outfile azuredeploy.json

0 comments on commit 7e9394f

Please sign in to comment.