forked from Azure/azure-rest-api-specs
-
Notifications
You must be signed in to change notification settings - Fork 0
42 lines (36 loc) · 1.17 KB
/
Copy patharm-lease-validation.yaml
File metadata and controls
42 lines (36 loc) · 1.17 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
name: ARM Lease Validation
on:
pull_request:
types:
# default
- opened
- synchronize
- reopened
# re-run if base branch is changed, since previous merge commit may generate incorrect diff
- edited
paths:
# Only trigger if PR includes at least one changed ARM lease file
- ".github/arm-leases/**"
# Also trigger on own sources
- ".github/workflows/arm-lease-validation.yaml"
- ".github/workflows/src/arm-lease-validation/**"
permissions:
contents: read
jobs:
arm-lease-validation:
name: ARM Lease Validation
runs-on: ubuntu-slim
steps:
- name: Checkout repository
uses: actions/checkout@v6
with:
fetch-depth: 2
- name: Install dependencies for github-script actions
uses: ./.github/actions/install-deps-github-script
- name: ARM Lease Validation
uses: actions/github-script@v8
with:
script: |
const { default: armLeaseValidation } =
await import('${{ github.workspace }}/.github/workflows/src/arm-lease-validation/arm-lease-validation.js');
return await armLeaseValidation(core);