Pamela Fox commited on
Commit
1928deb
·
1 Parent(s): 38fde14

Add bicep format to CI

Browse files
.github/workflows/azure-bicep-validate.yaml CHANGED
@@ -13,8 +13,17 @@ on:
13
  jobs:
14
  build:
15
  runs-on: ubuntu-latest
 
16
  steps:
17
- - name: Checkout
 
 
 
 
 
 
 
 
18
  uses: actions/checkout@v2
19
 
20
  - name: Build Bicep
 
13
  jobs:
14
  build:
15
  runs-on: ubuntu-latest
16
+
17
  steps:
18
+ - name: Checkout PR
19
+ if: ${{ github.event_name == 'pull_request'}}
20
+ uses: actions/checkout@v3
21
+ with:
22
+ repository: ${{ github.event.pull_request.head.repo.full_name }}
23
+ ref: ${{ github.event.pull_request.head.ref }}
24
+
25
+ - name: Checkout branch
26
+ if: ${{ github.event_name == 'push'}}
27
  uses: actions/checkout@v2
28
 
29
  - name: Build Bicep