Pamela Fox
commited on
Commit
·
38fde14
1
Parent(s):
79d1118
Add bicep format to CI
Browse files
.github/workflows/azure-bicep-validate.yaml
CHANGED
@@ -17,7 +17,18 @@ jobs:
|
|
17 |
- name: Checkout
|
18 |
uses: actions/checkout@v2
|
19 |
|
20 |
-
- name:
|
21 |
uses: azure/CLI@v1
|
22 |
with:
|
23 |
inlineScript: az config set bicep.use_binary_from_path=false && az bicep build -f infra/main.bicep
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
17 |
- name: Checkout
|
18 |
uses: actions/checkout@v2
|
19 |
|
20 |
+
- name: Build Bicep
|
21 |
uses: azure/CLI@v1
|
22 |
with:
|
23 |
inlineScript: az config set bicep.use_binary_from_path=false && az bicep build -f infra/main.bicep
|
24 |
+
|
25 |
+
- name: Format Bicep
|
26 |
+
uses: azure/CLI@v1
|
27 |
+
with:
|
28 |
+
inlineScript: az config set bicep.use_binary_from_path=false && az bicep format -f infra/main.bicep
|
29 |
+
|
30 |
+
- name: Format Bicep
|
31 |
+
uses: EndBug/add-and-commit@v9
|
32 |
+
with:
|
33 |
+
message: 'Update Bicep files'
|
34 |
+
add: '*.bicep'
|