From 48c1a6df85fbbc8a2ed7e8df87940a1a3fba49c3 Mon Sep 17 00:00:00 2001 From: Aire-One Date: Sat, 13 Aug 2022 03:10:11 +0200 Subject: [PATCH] ci(lint): fix when_path --- .woodpecker/lint.yml | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/.woodpecker/lint.yml b/.woodpecker/lint.yml index 1b0620a..0ff55d8 100644 --- a/.woodpecker/lint.yml +++ b/.woodpecker/lint.yml @@ -1,3 +1,8 @@ +variables: + - &when_path + - ".woodpecker/lint.yml" + - "**/*.lua" + pipeline: lint: image: ghcr.io/lunarmodules/luacheck:v0.26.1 @@ -6,8 +11,7 @@ pipeline: - apk add just - just check-lua when: - path: - include: [".woodpecker/lint.yml", "*.lua"] + path: *when_path style: image: alpine:edge # Stylua is only available on edge repository for now @@ -16,5 +20,4 @@ pipeline: - apk add just stylua - just check-format when: - path: - include: [".woodpecker/lint.yml", "*.lua"] + path: *when_path