Skip to content

Commit 3af4dfb

Browse files
committed
Exclude scripts folder from folder structure validation
1 parent 4051262 commit 3af4dfb

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

.github/workflows/src/arm-lease-validation/arm-lease-validation.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -282,7 +282,10 @@ export default async function validateArmLeases(core) {
282282

283283
// Get ARM lease files (only lease.yaml files)
284284
const armLeaseFiles = allChangedFiles.filter(
285-
(file) => file.startsWith(".github/arm-leases/") && !file.endsWith(".md"),
285+
(file) =>
286+
file.startsWith(".github/arm-leases/") &&
287+
!file.endsWith(".md") &&
288+
!file.startsWith(".github/arm-leases/scripts/"),
286289
);
287290

288291
if (armLeaseFiles.length === 0) {

0 commit comments

Comments
 (0)